Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Displaying arabic/farsi in alert box

    Many thanks for taking the time to read this, I hope the terminology makes sense.

    I am currently developing a website with one of the requirements that the same site must be portable into more than one language. The main two languages are english and farsi (arabic character set).

    Farsi reads right to left, english left to right.

    Everything is working fine with crossing over from one language to another - a swift change of character set and a subtle right to left css niftyness for displaying everything - all very funky however when i come to pop up a javascript alert box the farsi is displayed only as question marks. e.g. ????? ??? ???????

    I have not been able to find an english version on the web an example of popping up a javascript alert box dsiplaying farsi/arabic reading right to left - probably because my farsi is so bad and all the documentation is in that language!

    I have already written a little snippet than translates farsi characters into ansi codes, however alerting these just treats the ansi code as a string and displays it as such in raw format.

    Could anyone either answer my query on how to do this, or point me towards a resource (in english) that would help.

    Many thanks for your time.

    Martin
    Last edited by martin_narg; 01-05-2005 at 01:06 PM.
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Many thanks for your time and advice - perfect!

    Martin
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper


  •  

    Posting Permissions

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