larsiusprime / firetongue

A translation/localization framework written in Haxe
MIT License
144 stars 32 forks source link

UTF-8 not working #28

Closed hopewise closed 7 years ago

hopewise commented 7 years ago

Hello,

Although steps to generate the TSV from MS Excel seems to be straightforward, but I am struggling to have it working.

I export the file from MS Excel at mac, but nothing happens and no translation occurs. Is there a verbose mode? it just fails silently without any clue 😞
If I open the txt file in visual studio code, I see this message:

encoding not match!! reopen with [shiftjis]

if I try another language file in Turkish, I get a note:

encoding not match!! reopen with [unicode]

Although I can open the txt file and see correct letters in Max text editor.

I also tested the file in command line:

$ file -I components.txt 
components.txt: text/plain; charset=utf-8

so, it is utf-8, can you please help? to investigate, here is the file I am trying to use: https://drive.google.com/open?id=0BwzBTCo1-KJBWEJsNVJDZnJQTWc

the above file is already in english, but there is some math units, like:

image

I really appreciate your help!

larsiusprime commented 7 years ago

Do you have access to LibreOffice Calc? I'm considering openly not recommending Excel at all because it does such a bad job with creating TSV/CSV files and messing up the encoding no matter how hard you try to tweak the settings. I have never had problems with LibreOffice Calc, however.

On Sun, Nov 6, 2016 at 12:09 AM, Samir Sabri notifications@github.com wrote:

Hello,

Although steps to generate the TSV from MS Excel seems to be straightforward, but I am struggling to have it working.

I export the file from MS Excel at mac, but nothing happens and no translation occurs. Is there a verbose mode? it just fails silently without any clue 😞 If I open the txt file in visual studio code, I see this message:

encoding not match!! reopen with [shiftjis]

if I try another language file in Turkish, I get a note:

encoding not match!! reopen with [unicode]

Although I can open the txt file and see correct letters in Max text editor.

I also tested the file in command line:

$ file -I components.txt components.txt: text/plain; charset=utf-8

so, it is utf-8, can you please help? to investigate, here is the file I am trying to use: https://drive.google.com/open?id=0BwzBTCo1- KJBWEJsNVJDZnJQTWc

the above file is already in english, but there is some math units, like:

[image: image] https://cloud.githubusercontent.com/assets/1061157/20035508/c3383f80-a3ef-11e6-98e6-27735cb945f9.png

I really appreciate your help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/larsiusprime/firetongue/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtG-JhiIOH_p3et7ieWkOZI3moeWKcpks5q7WDugaJpZM4KqeDn .

www.fortressofdoors.com -- Games, Art, Design

hopewise commented 7 years ago

Thanks! saving a copy using LibreOffice did the job without any edit or update on the generated file 👍 only I had to rename it to txt extension

I've generated a TSV file, although I picked CSV in the types options: screen shot 2016-11-08 at 6 48 18 am I chosed tab as a delimeter and it was that simple :)

larsiusprime commented 7 years ago

Great!

On Mon, Nov 7, 2016 at 10:57 PM, Samir Sabri notifications@github.com wrote:

Closed #28 https://github.com/larsiusprime/firetongue/issues/28.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/larsiusprime/firetongue/issues/28#event-850981960, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtG-E2bmitfsMpTzT4e4TFmjCaPMJX2ks5q8AEdgaJpZM4KqeDn .

www.fortressofdoors.com -- Games, Art, Design