Jump to content


Photo

File Encoding


  • Please log in to reply
2 replies to this topic

#1 Co0n

Co0n
  • Member
  • 11 posts

Posted 21 July 2011 - 10:17 AM

Hey there :)

I just started a modding project and set upa git repository for it.
As there was an issue with german letters (äöü) I encoded all files as UTF-8 files.

Since then no dialog appears in the game (only an empty dialog box).
It's not like there is no dialog, if I press enter or the numbers for the answers on my keyboard the dialog still goes on.

I already tried encoding it ANSI, but that didn't work either :(
Any advice?

greetings,
Co0n

#2 Isaya

Isaya
  • Modder
  • 294 posts

Posted 21 July 2011 - 11:20 AM

You will have to rely on several encodings according to languages.

For western european languages, it looks like the encoding is Windows CP1252 (native for me in France), which seems to be the same as ISO 8859-1. When I watch a polish translation with this encoding, it look really strange, so I'm quite sure it's base on another encoding for eastern european languages.

I found out you need to use a real converter, an equivalent to lconv on Linux, to be able to convert files. I'm using Notepad++, which has menu items to handle encoding. It never made any change to actual encoding of the file. It looks like it's only used when typing, not to convert.

I found this tool helpful for this kind of conversion, although I once failed to properly recover a file saved with an unlisted Mac format.

#3 Co0n

Co0n
  • Member
  • 11 posts

Posted 21 July 2011 - 11:25 AM

You will have to rely on several encodings according to languages.

For western european languages, it looks like the encoding is Windows CP1252 (native for me in France), which seems to be the same as ISO 8859-1. When I watch a polish translation with this encoding, it look really strange, so I'm quite sure it's base on another encoding for eastern european languages.


Knowing it has to be ISO-8859-1 seems to be the solution, I reencoded it to ANSI before.
I'll test it and post here if it's the solution :)

// Ok, putting it back to ISO worked fine, thanks for your help!

Edited by Co0n, 21 July 2011 - 01:40 PM.