594 - Unicode text in viewer

Bugs and other issues or requests which have been resolved.
Post Reply
Message
Author
User avatar
Dreamer
Site Admin
Posts: 6115
Joined: 19.08.2007, 23:40

594 - Unicode text in viewer

#1 Post by Dreamer » 12.06.2012, 23:53

Unicode files - FC lng files for example, are not displayed correctly in the viewer. I'm not sur eif it's a bug, or just not implemented yet, but I couldn't find anything...

Example of the text displaying in the viewer in text and unicode mode:

"[Text]
1=fc_ShortCuts_en.htm
2=licence_eng.rtf

2001=OK
2002=Zru┼íi┼ą
2003=Pou┼żi┼ą
2004=Spusti┼ą
2005=N├íjs┼ą

3000=Prie─Źinok - v─żavo
3001=Prie─Źinok - vpravo
3002=Prie─Źinok - akt├şvny"

"呛硥嵴਍㴱捦卟潨瑲畃獴敟⹮瑨൭㈊氽捩湥散敟杮爮晴਍਍〲㄰伽ോ㈊〰㴲牚앵榡ꗅ਍〲㌰倽畯뻅앩ඥ㈊〰㴴灓獵楴ꗅ਍〲㔰丽ꇃ獪ꗅ਍਍〳〰倽楲쑥榍潮‭쑶憾潶਍〳㄰倽楲쑥榍潮‭灶慲潶਍〳㈰倽楲쑥榍潮‭歡썴皭祮਍〳㌰倽楲쑥榍潮‭敮歡썴皭祮਍〳㐰䄽瑫썵没慮瀠汯앯殾⁡‭쑶憾潶਍〳㔰䄽瑫썵没慮瀠汯앯殾⁡‭灶慲潶਍〳㘰䄽瑫썵没慮瀠汯앯殾⁡‭歡썴皭慮਍〳㜰䄽瑫썵没慮瀠汯앯殾⁡‭敮歡썴皭慮਍〳㠰嘽批慲썮₩潰潬뻅祫ⴠ瘠뻄癡൯㌊〰㴹祖牢湡꧃瀠汯앯殾⁹‭灶慲潶਍〳〱嘽批慲썮₩潰潬뻅祫ⴠ愠瑫귃湶൥㌊㄰㴱祖牢湡꧃瀠汯앯殾⁹‭敮歡썴皭敮਍〳㈱嘽批慲썮₩潰潬뻅祫愠潫猠뫃潢⁲‭쑶憾潶਍〳㌱嘽批慲썮₩潰潬뻅祫愠潫猠뫃潢⁲‭灶慲潶਍〳㐱嘽批慲썮₩潰潬뻅祫愠潫猠뫃潢⁲‭歡썴皭敮਍〳㔱嘽批慲썮₩潰潬뻅祫愠潫猠뫃潢⁲‭敮歡썴皭敮਍〳㘱䨽摥潮歴⁡潰猠異瑳湥귃਍〳㜱倽楲쑥榍潮潰猠異瑳湥귃਍〳㠱吽獥潴慶썣₭敲뻅浩਍〳〳娽敭敮썮ල㌊㌰㴱祖癴牯湥뷃਍〳㈳倽獯敬湤뷃瀠썲玭畴൰㌊㐰㴰楍썮璺਍〳ㄴ䠽摯귃൮㌊㐰㴲湄귃਍〳㌴吽뷃뻅앤澈൶㌊㐰㴴敍楳捡癯਍〳㔴刽歯癯਍〳〵䈽橡潴൶㌊㔰㴱䉫਍〳㈵䴽ൂ㌊㔰㴳䉇਍〳㐵吽ൂ㌊㘰㴰牁档귃湶൹㌊㘰㴱敌慮쐠쎍璭湡敩਍〳㈶匽牫瑹뷃਍〳㌶匽獹썴涩癯뷃਍〳㐶倽楲쑥榍潮൫㌊㘰㴵潂⁤灳慲潣慶楮ൡ㌊㘰㴶潋灭楲潭慶썮ල㌊㘰㴷慚썫撳癯湡뷃਍਍㌳〲㴰潮瑟慲獮慬整›敄慦汵⁴潃畬湭⁳楔汴൥㌊㈳㄰嘽쑥殾獯ꗅ਍㌳〲㴲敖뻄潫앳亥䑡獩畫਍㌳"

Correct text (displaying correctly in notepad and pspad for example):

"[Text]
1=fc_ShortCuts_en.htm
2=licence_eng.rtf

2001=OK
2002=Zrušiť
2003=Použiť
2004=Spustiť
2005=Nájsť

3000=Priečinok - vľavo
3001=Priečinok - vpravo
3002=Priečinok - aktívny"

Marek
Author
Author
Posts: 3976
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: 594 - Unicode text in viewer

#2 Post by Marek » 14.06.2012, 22:59

The lng files are not Unicode files but UTF8 files. For UTF8 you should use "RTF/UTF8" option in viewer.

User avatar
Dreamer
Site Admin
Posts: 6115
Joined: 19.08.2007, 23:40

Re: 594 - Unicode text in viewer

#3 Post by Dreamer » 15.06.2012, 14:17

I tried all options in viewer, also "RTF/UTF8", but the result is the same...

"[Text]
1=fc_ShortCuts_en.htm
2=licence_eng.rtf

2001=OK
2002=Zrušiť
2003=PouĹľiĹĄ
2004=SpustiĹĄ
2005=Nájsť

3000=PrieÄŤinok - vÄľavo
3001=PrieÄŤinok - vpravo
3002=PrieÄŤinok - aktĂ­vny
3003=PrieÄŤinok - neaktĂ­vny"

BTW it's correct in other text viewers and editors, even without changing any option and it's OK also in old FC with option "RTF/UTF8".

Edit: So some languages are OK with option "RTF/UTF8", but...

Slovak.lng - result is above
Bulgarian.lng - result is the empty viewer, no characters
Bulgarian.lng - result is the empty viewer, no characters

Marek
Author
Author
Posts: 3976
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: 594 - Unicode text in viewer

#4 Post by Marek » 15.06.2012, 17:36

I think, the files are not correctly saved.
Open slovak.lng with some text editor and call "Save as..." with the option Encoding UTF8.
Correctly saved files starts as follow (you cann see it in viewer):
[Text]
1=fc_ShortCuts_en.htm
2=licence_eng.rtf

User avatar
Dreamer
Site Admin
Posts: 6115
Joined: 19.08.2007, 23:40

Re: 594 - Unicode text in viewer

#5 Post by Dreamer » 15.06.2012, 23:25

I did it again, in PSPad, UTF-8, save, still the same. I think the files are saved correctly.

BTW all broken lng files are displayed correctly in old FC, notepad, PSPad, but they are broken in OpenOffice, Wordpad and FC XE, strange.

etc.
Posts: 74
Joined: 14.06.2012, 08:57

Re: 594 - Unicode text in viewer

#6 Post by etc. » 16.06.2012, 03:52

What I wrote in this post wasn't correct, so I deleted all.
I apologize for my mistake.

Marek
Author
Author
Posts: 3976
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: 594 - Unicode text in viewer

#7 Post by Marek » 29.06.2012, 22:52

Please try it again in the release 596, I have made some changes for auto detect text files.

User avatar
Dreamer
Site Admin
Posts: 6115
Joined: 19.08.2007, 23:40

Re: 594 - Unicode text in viewer

#8 Post by Dreamer » 11.07.2012, 21:21

Great work, fixed in 596, thank you, Marek!

Closed.

Edit: So Bulgarian.lng and Russian.lng are still empty, not sure if it's a bug, Serbian.lng is OK, strange.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests