Page 1 of 1

whats the code for " ß " ?

Posted: Thu Jul 05, 2012 8:52 am
by rambo66
I want to adress an NPC with a ß (in german called a sharp S )
I tried to find out in the ASCI Table, what when i had a look
ASCI Table says: ß = \223 but it doesn't work also I don't see something common with the \132 (ae) (Kuhkäfer )

does anyone know that how to solve ? ;)

thx

Re: whats the code for " ß " ?

Posted: Thu Jul 05, 2012 9:25 am
by rock5
I don't have experience with those type of letters but I believe you should be able to type them directly into your scripts as long as you save the file as "UTF-8 without BOM". Notepad++ can save in that format.

Re: whats the code for " ß " ?

Posted: Thu Jul 05, 2012 9:30 am
by Jandrana
The texts inside RoM are not encoded as ASCII, because this would limit the possible languages to latin alphabet only.
ASCII is a single byte encoding, that does only allow up to 256 different characters which is no longer sufficient.

RoM uses UTF-8 encoding. The code for "LATIN SMALL LETTER SHARP S" is (hex numbers) C3 9F.

To find other codes you can lookup UTF-8 encoding tables in the internet.

Perhaps it will work, if you save your script files with UTF-8 encoding (you can select your encoding when saving files with notepad).

But I don't know if micromacro is able work with UTF-8 encoded strings. I think you should try to work with object IDs.

Re: whats the code for " ß " ?

Posted: Thu Jul 05, 2012 9:35 am
by gloover
All the waypoints based on lua code, so use the lua-umlaut-code

the table of all umlauts and ß

Code: Select all

ä 	\195\164 	Jäger = J\195\164ger
Ä 	\195\132 	Ärger = \195\132rger
ö 	\195\182 	schön = sch\195\182n
Ö 	\195\150 	Ödipus = \195\150dipus
ü 	\195\188 	Rüstung = R\195\188stung
Ü 	\195\156 	Übung = \195\156bung
ß 	\195\159 	Straße = Stra\195\159e 
works fine for me!

BTW: this section is for waypoints,scripts and userfunctions only, not for such questions.

Re: whats the code for " ß " ?

Posted: Thu Jul 05, 2012 10:22 am
by rambo66
hello....

saving as "UTF-8 without BOM" was not successfully ;(

writing it like that: ß \195\159 Straße = Stra\195\159e
was adding 2 ASCI signs... also not successfully..

but seems like having it in the UTF-8 and the ASCI Sign \225 as ß was now succesfully.

Thank you all..

btw... i'm always not sure it if it is a way point issue or something else.. sorry

Re: whats the code for " ß " ?

Posted: Thu Jul 05, 2012 6:51 pm
by lisa
--=== Moved ===--