When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
Quote from: Michael on December 21, 2005, 10:57:42 pmHow about wxMBConv classes?Does not avail. Converts two-byte to variable length and vice versa. I tried, too, it only messes up the string completely.
How about wxMBConv classes?
Example 5: Printing a wxString to stdout in custom encoding. Using preconstructed wxCSConv instance.CodewxCSConv cust(user_encoding);printf("Data: %s\n", (const char*) str.mb_str(cust));Note: Since mb_str() returns a temporary wxCharBuffer to hold the result of the conversion, you need to explicitly cast it to const char* if you use it in a vararg context (like with printf).
wxCSConv cust(user_encoding);printf("Data: %s\n", (const char*) str.mb_str(cust));