UTF-8 support as XML files' encoding #1581
Labels
Enhancement
Game assets
A feature or an issue that involves gamedata change
Modmaker Experience
Modmaker experience with OpenXRay
Is your feature request related to a problem? Please describe.
Pretty much all modern environments fall back to unicode these days so "Windows-1251" encoding has to be defined explicitly for XMLs engine uses, which is annoying (especially when working from non-Windows OS).
Describe the solution you'd like
Unless XML starts with
<?xml version="1.0" encoding="windows-1251"?>
or has another encoding attribute's value (are any other even supported?) treat file as encoded in UTF-8.Describe alternatives you've considered
Working with files as UTF-8 in IDE then using iconv to convert them into encoding game engine understands (Windows-1251).
Additional context
I am partaking in effort for localisation patches of True Stalker in the community repo and have faced the garbled text display issues when submitted XMLs have been in UTF-8 initially.
Thanks in advance!
Not sure if this can be considered a duplicate: #419
Here emphasis is on gamedata XML files' encoding.
The text was updated successfully, but these errors were encountered: