Skip to content Skip to sidebar Skip to footer

Unicode To A Form With Javascript

Why when I set a form with the numeric character reference of an unicode with javascript the character is not converted to its correct representation, but when I set the form direc

Solution 1:

Try changing your Javascript string to '\u1495'

\u is the Unicode escape sequence in Javascript

And the code:

document.InputForm.TextBox.value = '\u1495';

Post a Comment for "Unicode To A Form With Javascript"