"VK" <sc**********@yahoo.com> wrote in message
news:41***********************@news.freenet.de...
You have to use hex values, not decimal ones:
\uFFFF
That only seems to work for 8-bit characters. It seems that 16-bit
characters require String.fromCharCode(). For example, excepting the fact
that antediluvian MSIE doesn't support all the Unicode characters (Moz FF
does), this works:
alert(String.fromCharCode(8220)+'For having lived long, I have experienced
many instances\n'
+'of being obliged, by better information or fuller consideration,\n'
+'to change opinions, even on important subjects, which\n'
+'I once thought right but found to be
otherwise.'+String.fromCharCode(8221)+'\n'
+String.fromCharCode(8195)+String.fromCharCode(819 5)+' '
+String.fromCharCode(8212)+' Benjamin Franklin,
1706'+String.fromCharCode(8211)+'1790');
This doesn't:
alert('\u8220For having lived long, I have experienced many instances\n'
+'of being obliged, by better information or fuller consideration,\n'
+'to change opinions, even on important subjects, which\n'
+'I once thought right but found to be otherwise.\u8221\n'
+'\u8195\u8195 \u8212 Benjamin Franklin, 1706\u82111790');
(For the typographically-unperceptive: the above contains left/right double
quotes, em spaces, an em dash, and an en dash)
There must be a better way than using String.fromCharCode() for a language
that is all 16-bit characters.
nf