Hello again.
How can I enable utf8 code for text in CEGUI? I want to use accents and other strange chars.
Thanks
utf8 with CEGUI? [solved]
Moderators: CEGUI MVP, CEGUI Team
utf8 with CEGUI? [solved]
Last edited by Toge on Sat Feb 14, 2009 23:12, edited 1 time in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi, and welcome
There are basically two things you need to do.
First, cast string literals to CEGUI::utf8*, maybe like this:
Second, and most important, is that your source files (and XML where appropriate) must be saved using utf8 encoding. There is usually an option for this in the text editor or IDE.
HTH
CE.
There are basically two things you need to do.
First, cast string literals to CEGUI::utf8*, maybe like this:
Code: Select all
myCEGUIWindow->setText( (CEGUI::utf8*)"Some Text" );
Second, and most important, is that your source files (and XML where appropriate) must be saved using utf8 encoding. There is usually an option for this in the text editor or IDE.
HTH
CE.
Who is online
Users browsing this forum: No registered users and 19 guests