Click to See Complete Forum and Search --> : Problem when display alert whoth special chars in a source file


laloche
03-06-2003, 10:32 AM
Hi guys,
In my HTML page, I have somewhere this:
<SCRIPT type="text/javascript" src="/blabla/theSource.js" language="javascript">

In my source fil, I have somwhere an alert:

alert ("décimal"); //sorry, I'am french ;-)

when I run my code I get an alert but with something like:

d<some chinese chars>mal


any ids ?

khalidali63
03-06-2003, 12:24 PM
are you using the actual decimal(.) or the word decimal?

Because in windows XP on some keyboards I have seen this happen,if you are trying to put actual decimal then use the num pad instead of the point on the main key bord.

Khalid

Dan Drillich
03-06-2003, 05:47 PM
It works for me in IE5 when my View/Encoding is set to ‘Western European (Windows)’ and when saving the source as Windows ANSI.
It’s also fine when saving it as UTF8 and viewing it in UTF8 encoding.

laloche
03-07-2003, 02:15 AM
When u says it works, you mean you have the problem or you don't ?
For information, I use a wepsphere portal server, and the problem appends too.

Dan Drillich
03-07-2003, 07:16 AM
When I say that it works I mean that I don’t have a problem. You have to check to what the encoding of the Websphere Portal Server is set.