I have to cast a CEGUI::String to a C++ std::string. The problem is the CEGUI::String is Unicode and for Example ä, ö or ü (for german text) are not showen right in the std::string. My Code is:
Code: Select all
std::ostringstream buffer;
buffer << editbox->getText();
std::string check = buffer.str();
I want to get text from an editbox and save it in std::string check.
Can you give an answer how to make it right?