CEGUI::String <-> MySQL (ucs2_unicode_ci)

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

yamashi
Just popping in
Just popping in
Posts: 7
Joined: Sat Oct 25, 2008 01:43

CEGUI::String <-> MySQL (ucs2_unicode_ci)

Postby yamashi » Sun Nov 08, 2009 12:46

Hello,

I currently have a database encoded in "ucs2_unicode_ci" and I would like to know how I can convert the data received from the SQL database to a CEGUI::String ?
Note : When I receive the data from the database it's a byte array.

How does the CEGUI::String know which encoding it's supposed to be using ?
Is the CEGUI::String implementation language independant ? (does it work the same way on an english computer and a japenese computer ?)

Thanks !

User avatar
Jabberwocky
Quite a regular
Quite a regular
Posts: 86
Joined: Wed Oct 31, 2007 18:16
Location: Canada
Contact:

Re: CEGUI::String <-> MySQL (ucs2_unicode_ci)

Postby Jabberwocky » Sun Nov 08, 2009 15:51

I don't know the answer, but if you search for "unicode" in the CEGUI forums, you'll get a huge number of threads discussing related issues. Maybe one of them will help you.
The Salvation Prophecy
Space Combat. Planet Exploration. Strategic Domination.

QuestOfDreams
Just popping in
Just popping in
Posts: 7
Joined: Wed Nov 04, 2009 16:32
Location: Austria
Contact:

Re: CEGUI::String <-> MySQL (ucs2_unicode_ci)

Postby QuestOfDreams » Mon Nov 09, 2009 09:08

If I remember correctly the CEGUI String class only handles utf8 and utf32 encoded string correctly. ucs 2 is similar to utf16 which is not supported. You'll have to do the conversion yourself...


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests