RE: Unicode string to hex not working
Well, String.fromCharCode(0) would give you a null-character, and a null-character means the end of a string. So, if you trace the result, the debugger will only show the first letter. If you try to send a Unicode-only character to the function (e.g. "€"), it'll give you "¬ " as output.
I don't get the purpose of this function, so I can't really help you with it.
This post was edited on 08-14-2007 at 12:44 PM by Matti.
|