Goku, on 30 April 2021 - 07:03 AM, said:
UTF-16 encoding used by MSTS is the best option if you want to support many languages. ASCII can't support that and it's user fault that they use obsolete MS Notepad to edit these files.
UTF-16 is also easier to support in software than UTF-8 although in modern programming libs it doesn't matter.
ASCII is only good for configuration files etc.
Although we haven't talked about it for the new formats (AFAIK), I expect us to use UTF-8 for everything. The .NET built-in JSON libraries have support for reading/writing the UTF-8 bytes directly, skipping any internal UTF-16 representation of the text.
darwins, on 30 April 2021 - 07:59 AM, said:
http://www.elvastower.com/forums/public/style_emoticons/default/aggressive.gif
Apart from any suitable high level editor it might be worth recommending appropriate text editors for us ordinary folk to use with OR. I currently use ConTEXT for most things - but I am not sure it always puts stuff into Unicode when it should.
If you're using Windows 10 1903 (19H1) or later, the built-in Notepad is enough to check what encoding your files are in. It has supported UTF-16 LE (what MSTS uses) since forever, but now displays the encoding in the bottom-right corner:
https://james-ross.co.uk/temp/Screenshot%202021-05-01%20135012.png