UTF32 in setText() method ?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

traibuidoi
Just popping in
Just popping in
Posts: 13
Joined: Tue Aug 05, 2008 08:31

UTF32 in setText() method ?

Postby traibuidoi » Wed Aug 06, 2008 08:48

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Aug 07, 2008 09:18

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.

traibuidoi
Just popping in
Just popping in
Posts: 13
Joined: Tue Aug 05, 2008 08:31

Postby traibuidoi » Fri Aug 08, 2008 09:24

thank you for helping me . The problem is solved :D

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?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Aug 08, 2008 12:27

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests