Problem with CEGUI::String
Posted: Mon Sep 21, 2009 19:13
Hey I've just ran into a problem concerning the CEGUI::String.
I'm trying to use german "umlaute" like: "äöü' within an edit box. This works just fine until the point i try actually accessing them by getText().
The thing is that I'm using std::string within my entire application except the gui of course. To get a CEGUI::String content into a std::string i do something like:
This works most of the time, but not with these "äöü". Internally the string is converted to utf8 and thereby the "äüö" get fecked up somehow.
So may question is, how do I get it right, if it is even possible?
PS: And besides, why is CEGUI not using the std::string class it does also support unicode?
Thanks in advance!
Mfg Imp
I'm trying to use german "umlaute" like: "äöü' within an edit box. This works just fine until the point i try actually accessing them by getText().
The thing is that I'm using std::string within my entire application except the gui of course. To get a CEGUI::String content into a std::string i do something like:
Code: Select all
std::string blah = control->getText().c_str();
This works most of the time, but not with these "äöü". Internally the string is converted to utf8 and thereby the "äüö" get fecked up somehow.
So may question is, how do I get it right, if it is even possible?
PS: And besides, why is CEGUI not using the std::string class it does also support unicode?
Thanks in advance!
Mfg Imp