Skip to main content
Topic: Russian city names (Read 20584 times) previous topic - next topic

Russian city names

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.


Re: Russian city names

Reply #2
Windows XP
I didnt really mess about Simutrans files, only played. Is there any place to download correct cityrules_ru file?

Re: Russian city names

Reply #3
Any list of Russian names needs to start with & as it does. It works for me too.

Re: Russian city names

Reply #4
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?

Re: Russian city names

Reply #5
Just use the russian citylist as a template and leave the beginning as it is.

Re: Russian city names

Reply #6
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.

Re: Russian city names

Reply #7
Yo must save it as UTF then ... could you attach your file? THen I can see what is wrong.

Re: Russian city names

Reply #8
Sure, look in attachment. I did attach file without ampersand, original one.

Re: Russian city names

Reply #9
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

Re: Russian city names

Reply #10
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.

Re: Russian city names

Reply #11
Well, I will teach simutrans also to use byte order mark to check for UTF-8. Be patient.

Re: Russian city names

Reply #12
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.

Re: Russian city names

Reply #13
Whenever you open a file in notepad, it will add the byte order mark.

Re: Russian city names

Reply #14
Then I have no idea where to edit this file to save it as working citylist in UTF-8.

Re: Russian city names

Reply #15
Use something different that notepad maybe? For example Notepad++ or something similar. It just needs to be better than normal Windows' notepad (and nearly everything out there is better).
  
***** PAK128 Dev Team - semi-retired*****

Re: Russian city names

Reply #16
Latest nightly should recognize it anyway.

 

Re: Russian city names

Reply #17
Ok will wait. Thank you.