Text and Status in Arabic, Chinese and Russian Script

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pere_mr@hotmail.com
Advanced
Advanced
Posts: 11
Joined: Wed Jun 09, 2004 2:41 pm

Text and Status in Arabic, Chinese and Russian Script

Post by pere_mr@hotmail.com »

I am building a menu the items of which must appear in Chinese script. What is the proper syntax in both the TEXT and the STATUS properties?

Example: the Unicode characters below will display the word 'Chemical Industry' in Chinese

&# 21270;&# 23398;&# 24037;&# 19994; Imagine there is no space between the # and the first number of each character code

化学工业

What syntax should I use in the TEXT and STATUS properties of my menu?

If I type in the following

Code: Select all

aI("text=&# 21270;&# 23398;&# 24037;&# 19994;;url=profiles/html/prof_en_4.html;status=Chemical Industry");
Imagine there is no space between the # and the first number of each character code


The Chinese script appears properly in the menu, although the status bar of the browser shows me that there is an error. If I type in the Unicode characters in the STATUS property, then it does not work at all.

Could someone give me some advice on how to insert these Unicode characters, as I need to display words in Chinese, Arabic and Russian?

Thank you
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hello,

I just tried the example code you posted (ie6/win2k). The Chinese characters displayed correctlyin the menu. When I out them in status, the status bar shows the unicode codes, but the menu still appears and works. I wonder if the source of the error message is elsewhere? What is the error message (and what browser?)?

How to get the Chinese characters in the status bar... I have no clue yet.

Kevin
pere_mr@hotmail.com
Advanced
Advanced
Posts: 11
Joined: Wed Jun 09, 2004 2:41 pm

Post by pere_mr@hotmail.com »

Any development on the issue of displaying Unicode (Arabic, Chinese, Russian...) characters in the status bar?
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

What does the error message say?

maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Haven't tried it, but I suppose you could try an escaped unicode sequence like \uXXXX where XXXX is the hex value of the unicode. This should also work in the text= property of the aI() string... e.g.,

Code: Select all

aI("text=\u5316\uXXX\uXXX... etc.");
Hope it works. If not, I'm stumped.

Kevin
Post Reply