Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UTF-8 instead of UTF-16 BOM LE formatting for maps #166

Open
vtcifer opened this issue Jan 10, 2024 · 0 comments
Open

Use UTF-8 instead of UTF-16 BOM LE formatting for maps #166

vtcifer opened this issue Jan 10, 2024 · 0 comments

Comments

@vtcifer
Copy link
Contributor

vtcifer commented Jan 10, 2024

Currently, genie will READ UTF-8 xml for maps, but will not write it out when saving from the UI. We need to convert it prior to commit to git, or git complains the file format.

I'm pretty sure this is the line that needs changing:

var xw = new XmlTextWriter(sPath, System.Text.Encoding.Unicode);

and we just need to tell instead of System.Text.Encoding.Unicode to use System.Text.Encoding.UTF8 or null

https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmltextwriter.-ctor?view=net-8.0#system-xml-xmltextwriter-ctor(system-string-system-text-encoding)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant