Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Encoding Problem

0 views
Skip to first unread message

Eckhard M. J?ger

unread,
Apr 26, 2004, 2:56:09 PM4/26/04
to
I'd like to change a string using JavaScript. When i use normal
characters anything goes fine but if the sring uses a special
character nothing happens (for instance: "textstringout[0]='Bärbel
Ölkertü';".
Using UTF8 (like: 0xAE) idsplay just the decimal value (0xAE->174).

How to do that?


Karamba!
::VRMLsuck::Bart
http://www.neeneenee.de/vrml/

Braden McDaniel

unread,
Apr 26, 2004, 5:52:32 PM4/26/04
to
ba...@neeneenee.de (Eckhard M. J?ger) wrote in message news:<15525540.04042...@posting.google.com>...

> I'd like to change a string using JavaScript. When i use normal
> characters anything goes fine but if the sring uses a special
> character nothing happens (for instance: "textstringout[0]='Bärbel
> Ölkertü';".
> Using UTF8 (like: 0xAE) idsplay just the decimal value (0xAE->174).
>
> How to do that?

Try "\u00AE". JavaScript uses UTF-16, not UTF-8.

Braden

mdk

unread,
Apr 26, 2004, 6:07:11 PM4/26/04
to
Użytkownik Braden McDaniel napisał:


I used something like:

loading.string[0] = 'Trwa \xC5\x82adowanie...';

and it worked fine.

md

Eckhard M. J?ger

unread,
Apr 27, 2004, 5:03:13 AM4/27/04
to
Hey thanks a lot!

Eckhard M. J?ger

unread,
May 9, 2004, 11:03:26 AM5/9/04
to
Seems this doesn't work, but using something like "\xC3\x80" work
fine. I tried it in Cortona 4.2, do not know if other browsers like
"\u00AE" syntax.

For anybody interested in:
Ā='\xC3\x80'
Á='\xC3\x81'
Â='\xC3\x82'
Ä='\xC3\x84'
ā='\xC3\xa0'
á='\xC3\xa1'
â='\xC3\xa2'
ä='\xC3\xa4'

Č='\xC3\x88'
É='\xC3\x89'
Ę='\xC3\xaa'
č='\xC3\xa8'
é='\xC3\xa9'
ę='\xC3\xaa'

Ō='\xC3\x92'
Ó='\xC3\x93'
Ô='\xC3\x94'
Ö='\xC3\x96'
ō='\xc3\xb2'
ó='\xc3\xb3'
ô='\xc3\xb4'
ö='\xc3\xb6'

Ų='\xC3\x99'
Ú='\xC3\x9a'
Û='\xC3\x9b'
Ü='\xC3\x9c'
ų='\xC3\xb9'
ú='\xC3\xba'
û='\xC3\xbb'
ü='\xC3\xbc'

Ý='\xC3\x9d'
ý='\xC3\xbd'
ß='\xC3\x9f'

::VRMLsuck::Bart
http://www.neeneenee.de/vrml/
http://www.neeneenee.de/vrml/forum/

0 new messages