Topic: windows wrong charset texts ?
SirVer |
Posted at: 2013-10-22, 06:12
Are you sure that the data is actually in UTF-8 when it is printing correctly? If you see it correctly on your console, it only means that the console and the text strings agree on the encoding, but not that it is in UTF-8 which it has to be for Widelands to do the right thing with it. I did not completely follow what you did there, but if you have the feeling that this is related to our renderer. We actually have two of them right now - the mission texts (i.e. scenario textboxes) are rendered with the new code and all text there eventually ends up in TTF_RenderUTF8_Blended in src/graphic/text/sdl_ttf_font_impl.cc, the rest is rendered in src/graphics/font_handler.cc. I would try to see if those functions get the correct data. Top Quote |
Tino |
Posted at: 2014-01-20, 21:10
Please give the latest build another try. On my WinXP now most oft the german umlauts (ä,ö,ü...) are now ok. Some other characters like '"' still make problems, but overall it looks better for me. Switching to gcc 4.8 and updating/recompiling some libraries did seem to make a change.
Edited: 2014-01-20, 21:20
Top Quote |
einstein13 |
Posted at: 2014-01-20, 21:31
Fast check in polish: http://i.cubeupload.com/Gp39gS.jpg So: almost every message is well done, but not in "strange font" (should be Kwatera główna, not Kwatera gl.owna). In my opinion is something missing with the font. Sometimes even MS Word make similar mistakes einstein13 |
GunChleoc |
Posted at: 2014-01-21, 10:05
I could not resolve my problem by replacing the font with standard Arial which has the correct characters, so I don't think the problem is the font. You could check that to make sure you have the same problem. Busy indexing nil values Top Quote |
fuchur |
Posted at: 2014-02-08, 11:02
Maybe the following is related to this charset problem: I realized that german umlauts are wrong in savegame filenames in Windows explorer. In the game they are displayed correctly. Example: 01 - Eyes in the Dark (hat Baue eine Försterhütte. erreicht).wgf Machine: Windows 7 Pro 64 bit, Widelands b18rc1 Top Quote |
GunChleoc |
Posted at: 2014-02-08, 12:56
That's a case of filenames being defined in UTF-8 rather than ANSI. If it was just that, our display problem would be easy to solve. So, this is a different bug. Busy indexing nil values Top Quote |