Hi Anthony,

 

Tried that. Tango still converts those French chars. My solution seems to be the only one. Plus, the apostrophe must be converted to <@SQ>, regardless how you toggle the quotes around it. Otherwise it will affect your code after it.

 

Thanks anyway.

Richard

 

 

-----Original Message-----
From: Anthony M. Humphreys [mailto:[EMAIL PROTECTED]]
Sent
:
Tuesday, March 08, 2005 5:51 PM
To:
[email protected]
Subject: Re: Witango-Talk: French Text in _javascript_ in Tango

 

In _javascript_ you can also use the hex values of Unicode characters (16 bit, UTF-16), use \uEEEE format.

You _should_ be able to code <@FORMAT STR="my string with high ascii" ENCODING="_javascript_"> and it _should_ escape high ascii values for you, but I have not yet tried this.

so

alert(' aucun crit�re de recherche n\'a �t� indiqu� ');

 

becomes

 

alert('<@FORMAT STR=" aucun crit�re de recherche n'a �t� indiqu� " ENCODING="_javascript_">');

 

Note, I removed the escaping for the apostrophe as it will be done for you.

 

Anthony -

 

 

----- Original Message -----

From: Richard Wan

Sent: Tuesday, 08 March, 2005 17:02

Subject: RE: Witango-Talk: French Text in _javascript_ in Tango

 

Hi all,

 

I found the answer. Must use “\xxx” when using characters with punctuation on top in Tango. The ‘xxx’ is the octal code. In case anyone of you need it in the future, you might want to save this somewhere (not my page, found it on google):

 

http://www.rgagnon.com/jsdetails/js-0002.html

 

Thanks, 

Richard

 

-----Original Message-----
From: Richard Wan [mailto:[EMAIL PROTECTED]
Sent:
Tuesday, March 08, 2005 4:34 PM
To:
[email protected]
Subject: Witango-Talk: French Text in _javascript_ in Tango

 

Hello,

 

Has anyone had experience with French text in _javascript_ in Tango?

 

For example, simple alert box:

 

alert(' aucun crit�re de recherche n\'a �t� indiqu� ');

 

Tango converts the characters with the accent punctuation into html codes e.g. &#232;, &#233;

 

I’ve tried unescape(), I’ve tried assigning string to a variable and displaying it with different encoding attributes.

 

A simple HTML page with the French text in _javascript_ will work though.

 

Any suggestions?

 

Thanks,

 

Richard

 

 

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to