Results 1 to 7 of 7

Thread: a huge newB question regarding text/strings in JS

  1. #1
    Join Date
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default a huge newB question regarding text/strings in JS

    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.

    P.S.
    please forgive me for any kind of wrong spelling.
    thanks again.

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi.. Try embedding the font into the web page, Microsoft have free downloadable tool to do this....
    http://www.microsoft.com/typography/...ft3/weft01.htm

    rgds,Simon

  3. #3
    Join Date
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is there a simplier way to make my .js file to work with difrrent type of charecters encoding ?

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  7. #7
    Join Date
    Oct 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLcrazzy
    which makes me want to uninstall that !@$#@$% program.
    ^^
    ROFL

    [insert post here so it isnt spam]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •