The utf8 encoding doesn't work in VC8. (but, works in VC7.1)

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

User avatar
programmer
Just popping in
Just popping in
Posts: 2
Joined: Sun Dec 10, 2006 09:58
Location: Korea

The utf8 encoding doesn't work in VC8. (but, works in VC7.1)

Postby programmer » Mon Dec 11, 2006 00:21

Hello. ^^
I'm sorry that I am poor at English.
------------------------------------------------------------------------------------
[Question]

Yesterday, I found a strange situation.
I wanted to draw korean characters.
VC 7.1 + CEGUI 0.4.x(or CEGUI 0.5.x) worked very well.
Please, see the VC7.1 screenshot below.

Image

However, VC 8.0 + CEGUI 0.4.x(or CEGUI 0.5.x) didn't work.
(the same source code and the same resources)
Please, see the VC8.0 screenshot below.

Image

I'm sure that I encoded my source code in UTF-8.
So, I don't understand why it doesn't work.

------------------------------------------------------------------------------------
I was tossing and turning all day long at home.
Help me, please. T_T[/img]

User avatar
programmer
Just popping in
Just popping in
Posts: 2
Joined: Sun Dec 10, 2006 09:58
Location: Korea

File input test -> OK

Postby programmer » Mon Dec 11, 2006 07:26

I tried to load utf-8 text from file. (in VC8)
In that case, it worked very well.
Therefore, I think that VC8 has some bugs. ^_^
-------------------------------------------------------------------------------

FILE *stream;
char list[21] = {0, };
if( (stream = fopen( "test.txt", "r+t" )) != NULL )
{
fread( list, sizeof( char ), 20, stream );
lbox->addItem(new MyListItem((utf8*)list));
fclose( stream );
}


Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests