Jump to content

Recommended Posts

Posted

Hey,

Can anyone tell me what encoding the .Mission file has? I'm rendering some missions from code and some of our pilots have the Swedish characters Å, Ä, Ö, å, ä, ö and so on. I'm currently writing the file as utf-8 but it doesn't seem to want to accept it. It works fine if I save it in the mission editor but I can't seem to figure out what encoding it's using.

 

Thanks

 

/K

Jaegermeister
Posted

I'm sure someone can, but it doesn't look like they are going to.

Posted

UTF-8 is what I see in NotePad++.

Posted

yep, think so, Notepad ++ exposes more than the normal notepad does.

JG4_Deciman
Posted

As I use my own c# script on editing missions

here my settings

 

        public StreamWriter(string path) : this(path, false, StreamWriter.UTF8NoBOM, 1024)
        {
        }

 

            CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-GB");
            CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-GB");

 

So UTF8 seems to match

 

Deci

  • Upvote 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...