...

View Full Version : Unicode conversion



designer_bhutan
08-14-2005, 10:13 AM
hi

i am new to programming can any 1 help me pls. with this bit of code to convert numbers to 4 digits unicode value:

eg:

var num = 1323

this should be the result: 0031003300320033

i.e : 1=0031, 3=0033, 2=0032, 3=0033 etc. for all the 0,9 digits.

i tired using hex() but could not get the required result.

thanks in advance.

Cyberlord
08-14-2005, 06:48 PM
take this:



Function unicode(n)
for x = 1 to len(n)
unicode = unicode & left(unicode &"00"& asc(mid(n,x,1)),4)
next
End Function



Not tested, but should work.

cheers



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum