|
|
| Eckhard M. J?ger 2004-04-26, 5:35 pm |
| 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 2004-04-26, 10:32 pm |
| bart@neeneenee.de (Eckhard M. J?ger) wrote in message news:<15525540.0404261056.70fc3c39@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
| |
|
| U¿ytkownik Braden McDaniel napisa³:
> bart@neeneenee.de (Eckhard M. J?ger) wrote in message news:<15525540.0404261056.70fc3c39@posting.google.com>...
>
>
>
> Try "\u00AE". JavaScript uses UTF-16, not UTF-8.
>
> Braden
I used something like:
loading.string[0] = 'Trwa \xC5\x82adowanie...';
and it worked fine.
md
| |
| Eckhard M. J?ger 2004-04-27, 7:29 am |
| Hey thanks a lot!
| |
| Eckhard M. J?ger 2004-05-14, 12:16 am |
| 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/
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |