Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-04-2005, 06:14 PM   PM User | #1
martin_narg
Regular Coder

 
martin_narg's Avatar
 
Join Date: Jul 2002
Location: Chamonix, France
Posts: 600
Thanks: 1
Thanked 3 Times in 3 Posts
martin_narg is an unknown quantity at this point
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
__________________
"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

Last edited by martin_narg; 01-05-2005 at 12:06 PM..
martin_narg is offline   Reply With Quote
Old 01-06-2005, 05:27 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
This might give you an idea.

http://www.codingforums.com/showthread.php?t=48090
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-06-2005, 10:00 AM   PM User | #3
martin_narg
Regular Coder

 
martin_narg's Avatar
 
Join Date: Jul 2002
Location: Chamonix, France
Posts: 600
Thanks: 1
Thanked 3 Times in 3 Posts
martin_narg is an unknown quantity at this point
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
martin_narg is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:10 AM.


Advertisement
Log in to turn off these ads.