Latest Posts

Topic: windows wrong charset texts ?

SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
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

Joined: 2009-02-20, 16:05
Posts: 252
Ranking
Tribe Member
Location: Somewhere in Germany...
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.

Example:



http://i44.tinypic.com/b990rs.jpg

Edited: 2014-01-20, 21:20

Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2014-01-20, 21:31

Fast check in polish:

http://i.cubeupload.com/Gp39gS.jpg

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 face-wink.png


einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
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

Joined: 2009-10-07, 13:01
Posts: 186
Ranking
Widelands-Forum-Junkie
Location: Germany
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
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
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