Ra-Na/GTranslate-strings-xml

EN -> TH Translation Error

Closed this issue · 4 comments

TH letters are broken comes like ??????? ?? ? ? ????

http://prntscr.com/kb9vac

Ra-Na commented

Yes I did. I found a solution
LINE 175
if r.encoding is None or r.encoding == 'ISO-8859-1':
Change TO
if r.encoding is None or r.encoding == 'windows-874':

It's working for Thai but might broke other languages idk yet.

Could you please contact with me about future of the project. ozdinmt@gmai.com

Ra-Na commented

That was a really good comment. Actually, we should read the encoding from r.content or r.text, set it correctly, and then pull r.text to post-process it. I will fix this issue soon. I did not expect that the encoding is different when using different target languages, but that is what actually happens. TH ->windows-874, DE->ISO-8859-1