Page 1 of 1

Mod kit character encoding

Posted: Mon Nov 10, 2014 11:55 pm
by clark17
Hi all,

I have a small problem with character encoding in Compagnies.DBF.
I add a compagnie with name "Nestlé", and in game i have this:
Image

When i open Compagnie.DBF with Libre Office, i have a choice with many character encoding, but wich one?
Image

Re: Mod kit character encoding

Posted: Wed Nov 26, 2014 6:12 pm
by clark17
No one has the answer?

Re: Mod kit character encoding

Posted: Wed Nov 26, 2014 7:09 pm
by counting
If it's 'é', then ISO-8859-14 or 15, or windows 1252 have it. The problem is how the game read the code-page.

For me, I open it with DOS/OS2-850 it's a much older code, should include a lot of Western European characters

Re: Mod kit character encoding

Posted: Thu Nov 27, 2014 1:17 pm
by David
Please select "Unicode (UTF-8)".

Re: Mod kit character encoding

Posted: Thu Nov 27, 2014 2:57 pm
by clark17
Thanks!

Re: Mod kit character encoding

Posted: Thu Nov 27, 2014 3:58 pm
by counting
David wrote:Please select "Unicode (UTF-8)".
But it's also about how Capitalism program read the encoding than the actual dbf's character encoding, right?

I can type in all the Characters in Chinese as I want and showing them in openoffice just fine, but Capitalism would not be able to show them anyway (it would actually crash the game if you attempt to put them in a dbf file)

Re: Mod kit character encoding

Posted: Fri Nov 28, 2014 1:28 am
by David
I did a test and the game was able to display Chinese characters. Please see the attached screenshots.

Re: Mod kit character encoding

Posted: Fri Nov 28, 2014 3:12 am
by counting
I put Chinese characters in billionaire list. And it crashes during loading.

It should use UTF-8 encoding right? Or was it has something to do with simplified Chinese or traditional Chinese?

Re: Mod kit character encoding

Posted: Fri Nov 28, 2014 3:50 am
by David
I used Unicode UTF-8 and traditional Chinese and it ran okay.

Perhaps you can send me your Billionaries DBF file and I will test it.

Re: Mod kit character encoding

Posted: Fri Nov 28, 2014 4:01 am
by counting
David wrote:I used Unicode UTF-8 and traditional Chinese and it ran okay.

Perhaps you can send me your Billionaries DBF file and I will test it.
I patched it to 2.6.14 and repack it again, and it doesn't crash anymore. Something updated in the latest patch?