How to support unicode in Editext string

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

umen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Sep 12, 2011 08:24

How to support unicode in Editext string

Postby umen » Mon Oct 17, 2011 11:24

Hello all
im was searching for solution for this , but didn't found any standard solution .
if i like to support Unicode characters for example in EditText box . what i need to do ?
today i have this:

Code: Select all

CEGUI::Editbox* idbox = static_cast<CEGUI::Editbox*>(CEGUI::WindowManager::getSingleton().getWindow("NewInputIDBox"));
     CEGUI::String sStr = idbox->getText();
     std::string sStlStr(sStr.c_str());


but it dosnt support Unicode in the std string. what i need to do to be able to support it ?
Thanks

MarkR
Quite a regular
Quite a regular
Posts: 64
Joined: Thu Jul 15, 2010 06:55

Re: How to support unicode in Editext string

Postby MarkR » Mon Oct 17, 2011 16:52



Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests