The setText() method in CEGUI only work with UTF8 string .
But Vietnamese need UTF32 to display correct . So how can i do that ?
For ex , i need some code like : textBox ->setText(L"Tùy chọn");
i'm very pleasure if you can help me and sorry for my bad English
UTF32 in setText() method ?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi, and welcome
UTF8 can represent all the codepoints just as well as UTF32 can; it's just a different way of encoding the same information.
What you need to do in instances such as these is to first cast the string literal (without the 'L' qualifier, btw) in the source to const CEGUI::utf8* and then, most importantly, ensure the source code file is saved using utf8 encoding.
This works for sure, as it is how we have used international characters in demos like the Font demo - although this is not Vietnamese, the concept is the same.
CE.
UTF8 can represent all the codepoints just as well as UTF32 can; it's just a different way of encoding the same information.
What you need to do in instances such as these is to first cast the string literal (without the 'L' qualifier, btw) in the source to const CEGUI::utf8* and then, most importantly, ensure the source code file is saved using utf8 encoding.
This works for sure, as it is how we have used international characters in demos like the Font demo - although this is not Vietnamese, the concept is the same.
CE.
-
traibuidoi
- Just popping in

- Posts: 13
- Joined: Tue Aug 05, 2008 08:31
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
traibuidoi wrote:ah i my country there's a popular game online named "Thiên Long Bát Bộ " from Sohu company , Chinese . I founded it used CEGUI . Has they got license?
Prior to 0.5.0 the license was LGPL and from 0.5.0 onwards it has been the MIT license. Any anyone is free to use the system within the appropriate set of conditions. Are you saying that they're not in compliance with the license?
CE.
Who is online
Users browsing this forum: No registered users and 15 guests