wxAutomationObject Cyrillic Text Problem
Posted: Wed Jun 02, 2010 9:47 am
WX : 2.8.3 (Not Unicode)
OS : Windows XP
COMPILER: GCC 3.4.5 (Code::Blocks); VC 7 (VS 2003.NET)
Result: "Ìàìà"
Please, help me!
P.S.: If text in english, or numeric value - all Ok
[/code]
OS : Windows XP
COMPILER: GCC 3.4.5 (Code::Blocks); VC 7 (VS 2003.NET)
Code: Select all
wxAutomationObject obj.
/* ... */
wxVariant v = wxVariant(wxT("Мама")); // Cyrillic text
/*
wxCSConv convFrom(wxT("cp-1251"));
wxCSConv convTo(wxT("utf-8"));
wxString s = wxT("Мама"); // Cyrillic text
v = wxVariant(wxString(s.wc_str(convFrom), convTo));
*/
if (!obj.PutProperty(wxT("Value"), v)) {
throw wxXlsException("Can't Write Value!");
}
Please, help me!
P.S.: If text in english, or numeric value - all Ok
[/code]