I'm using russian language in Simutrans 102.2.1. Is there any way to write city names in russian? Because when I write them, they appears in wrong encoding.
Linux, Windows or other?
Windows you used the GDI version
Or the simutrans/[set]/text/cityrules_ru.txt is wrong.
Windows XP
I didnt really mess about Simutrans files, only played. Is there any place to download correct cityrules_ru file?
Any list of Russian names needs to start with & as it does. It works for me too.
Well, I meant not "List with existing names" but "When I start to write new city name ingame, it appears in wrong encoding". Is it the same trouble about ampersand in cityrules_ru.txt?
Just use the russian citylist as a template and leave the beginning as it is.
I'm afraid I still didnt got it. I'm playing pak128 with russian translation, so I did put citylist_ru with russian names in /pak128/text but still not able to see russian letters in correct encoding. I did put ampersand in front of first city name in citylist_ru.txt and it didnt help again.
Yo must save it as UTF then ... could you attach your file? THen I can see what is wrong.
Sure, look in attachment. I did attach file without ampersand, original one.
You citylist contained three garbage bytes (EF BB BF) at the beginning (ok, the byte order mark, which is useless for UTF ... ) instead of the required A7 C2 sequence "§" in Latin1 letters. Not sure which editor you used, but maybe you need to use a hex editor to make this the first letters
Could you just upload fixed/correct one? I dont use names from citylist, always giving my own ones. But if citylist is incorrect it wont let me do so. Have no idea what is HEX editor.
Well, I will teach simutrans also to use byte order mark to check for UTF-8. Be patient.
I worked HEX editor out, took english citylist, edited first city name in notepad to cyrillic one, opened edited file in hex editor and added A7 C2 in front of town name. Got something like §cityname in russian: §Москва. But still having same strange symbols ingame. Probably there is issue with fonts or translation.
I am patient, just thought you know how to fix this trouble and would help. Sorry if I bother you.
Whenever you open a file in notepad, it will add the byte order mark.
Then I have no idea where to edit this file to save it as working citylist in UTF-8.
Use something different that notepad maybe? For example Notepad++ (http://notepad-plus-plus.org/) or something similar. It just needs to be better than normal Windows' notepad (and nearly everything out there is better).
Latest nightly should recognize it anyway.
Ok will wait. Thank you.