View Full Version : a huge newB question regarding text/strings in JS

10-27-2004, 09:45 AM
hi to all,
please help in my problem regarding text/strings in JavaScript.
my problem is that i want to write a menu using Hebrew letters (i'm from Israel) but while i'm saving the .js file it tells me that some of the charecters that i'm using are not suittable for the document encoding and that i should try to change the charecters coding to UTF-8 or something else that will work.
i encoutered the problem before as i tryed to do it before in HTML page and i solved it by changing the charset in the <meta> to UTF-8 (charset=UTF-8). is there a semillar solution to this problem in .js files?
i'll be gratefull for any reply and help that you can provide me.
thanks in advance BLcrazzy.

please forgive me for any kind of wrong spelling.
thanks again. :)

10-27-2004, 11:04 AM
Hi.. Try embedding the font into the web page, Microsoft have free downloadable tool to do this....


10-27-2004, 03:30 PM
is there a simplier way to make my .js file to work with difrrent type of charecters encoding ?

10-27-2004, 04:20 PM
I don't know the first thing about this issue, but an easy workaround would be to make small .gif files or .png with your text in. Optimize them for a small filesize.

Someone'll eventually view this thread and just know how to deal with it, unfortunately I don't :(


10-28-2004, 06:07 AM
thanks, that work around worked good for me, but still the problem remains.
i realy want to believe that there a code's line that deal with that kind of problem cause i'm sure its happens in others type of non-english charecters.

10-28-2004, 07:46 AM
hello again,
i found a solution to my problem in the most unexpected way.

as i try to continue writing the code in a diffrent computer (in my university) i was forced to use notepad (at my home i worked in dreamweaver MX 2004) and as i was writing others line's code i tried to write again in hebrew. this time i was able to get those charecters visiable in my broweser.

i feel affended that i didnt thought about it before, which makes me want to uninstall that !@$#@$% program.

thanks to you all for replying and trying to help. :)

10-30-2004, 11:03 AM
which makes me want to uninstall that !@$#@$% program.


[insert post here so it isnt spam]