Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: international chars (Read 3613 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

international chars

Hi,

I'm making plugin for polish community and when i get this:

static cfg_string cfg_amp_offline("plugin_offline_text", "dzień dobry");

and then I put in edit box by uSetDlgItemText...although in edit i get only  "dzie" it stops when it comes to "ń" and the confing file stops loading when meet one of this latin characters...

is there any soulution for this problem ?

international chars

Reply #1
You need to store the texts in UTF-8 format. This means replacing ń with character combo \0xC5 \0x84.

international chars

Reply #2
is there any function or macro for that ?

international chars

Reply #3
One very easy way to do this is to start notepad, enter the text you want to convert, save it as a UTF-8 file, open it with something that doesn't understand UTF-8 (I use MSVC for this) and copy the string. Be sure to not copy the few bytes notepad prepends to the data though!

international chars

Reply #4
thanks ! that was helpful