"VK" <sc**********@y ahoo.com> wrote in message
news:41******** *************** @news.freenet.d e...
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.fromChar Code(). For example, excepting the fact
that antediluvian MSIE doesn't support all the Unicode characters (Moz FF
does), this works:
alert(String.fr omCharCode(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.'+Str ing.fromCharCod e(8221)+'\n'
+String.fromCha rCode(8195)+Str ing.fromCharCod e(8195)+' '
+String.fromCha rCode(8212)+' Benjamin Franklin,
1706'+String.fr omCharCode(8211 )+'1790');
This doesn't:
alert('\u8220Fo r 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.\u822 1\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.fromChar Code() for a language
that is all 16-bit characters.
nf