Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Localization Bug (Byte Order Mark) #25

@Chupachu

Description

@Chupachu

I've recently found an issue that the program does not compile the localization files in UTF8-BOM, but rather UTF8, which the game is unable to use for localization. Recently, I developed a Country Generator, which requires BOM in order to get the localization to work, so if you're interested in the way I did this, I have a sample of code below that properly enables Byte Order Mark and should be compatible with your program.

Here is a solution I found for writing files with Byte Order Mark enabled:

        Stream s = File.Open(""+OFD_Loc.FileName,FileMode.Open);

        using (var sw = new StreamWriter(s, new UTF8Encoding(true)))

        {

            sw.WriteLine(lines);

        }

I hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions