J
jiverbean
Dear group members,
I cam across a glitch in Javascript and I don't know how to solve it
elegantly.
I have an array with strings of German words:
profile[1] = "Fröhliches Fräulein";
Because HTML doesn't or didn't allow some of these characters, I wrote:
profile[1] = "Fröhliches Fräulein";
but when I use an alert(profile[1]); the dialog displays the escape
codes instead of the diacritical marks. I then figured the unescape()
function would solve the problem, but not. I don't want to write:
profile[1] = "Fr%190hliches Fr%191ulein";
alert(unescape(profile[1]));
The numbers in the above example only serve to illustrate the idea. I
don't know where to look the exact numbers up, unless they are the
ASCII codes. I haven't tried the last technique yet, but I'm pondering
the issue
Any suggestions,
Jean Biver
________________________________________________
Check out my home page at http://homepage.internet.lu/aibiver
Please recommend my seti@home profile at
http://setiathome2.ssl.berkeley.edu/fcgi-bin/fcgi?cmd=view_feedback&id=26539
I cam across a glitch in Javascript and I don't know how to solve it
elegantly.
I have an array with strings of German words:
profile[1] = "Fröhliches Fräulein";
Because HTML doesn't or didn't allow some of these characters, I wrote:
profile[1] = "Fröhliches Fräulein";
but when I use an alert(profile[1]); the dialog displays the escape
codes instead of the diacritical marks. I then figured the unescape()
function would solve the problem, but not. I don't want to write:
profile[1] = "Fr%190hliches Fr%191ulein";
alert(unescape(profile[1]));
The numbers in the above example only serve to illustrate the idea. I
don't know where to look the exact numbers up, unless they are the
ASCII codes. I haven't tried the last technique yet, but I'm pondering
the issue
Any suggestions,
Jean Biver
________________________________________________
Check out my home page at http://homepage.internet.lu/aibiver
Please recommend my seti@home profile at
http://setiathome2.ssl.berkeley.edu/fcgi-bin/fcgi?cmd=view_feedback&id=26539