Help - Search - Members - Calendar
Full Version: international chars
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
hid
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 ?
Case
You need to store the texts in UTF-8 format. This means replacing ń with character combo \0xC5 \0x84.
hid
is there any function or macro for that ?
Jasper
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!
hid
thanks ! that was helpful
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.