Issues with German Umlauts and SetGadgetText?!
BlitzMax Forums/MaxGUI Module/Issues with German Umlauts and SetGadgetText?!
| ||
Hello there! I pass a string over to a text label via SetGadgetText(). As soon as German Umlauts are involved the text label gets broken. Strangely, the string itself inside the DebugLog window looks fine? Example: ![]() Already tried to use different fonts via the LookupGuiFont() function: GUIFONT_SYSTEM GUIFONT_SANSSERIF GUIFONT_MONOSPACED The issue stays the same and the used fonts support the unicode chars needed. Is there any way to fix this (cross-platform solution if possible)? Thanks, Grisu P.S.: System: Win7 (64-Bit), BMX 1.44b and latest MaxGUI. |
| ||
Hmm works here on XP latest MaxGUI but not yet latest BMax, may related to Win7 ? When did it start to happen? |
| ||
This glitch has been there for me from the "start". At first I thought it was a problem with Brucey's Fmod wrapper and getting the tag_id from a mp3 streams. - But it works fine. Have the same "issue" on a XP system. So I guess the origin lies somewhere else. Can I "format" a string to make sure it displays correctly? |
| ||
Did just test on Win7 and it does work here. |
| ||
It must have to do something with the way bmx handles strings. Can i determine which format the "data" itself is stored? I'm using an external function "tag.GetDataAsString()", so I can't tell if SetGadgetText() can process it. |
| ||
Which command do you use to store it? The standard text commands should work, or do you create your own format during save. |
| ||
The undocumented function "FromUTF8String()" did the trick. Issue solved. Thanks JSP for his help on this matter. |