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 !
CEGUI::String <-> MySQL (ucs2_unicode_ci)
Moderators: CEGUI MVP, CEGUI Team
- Jabberwocky
- Quite a regular
- Posts: 86
- Joined: Wed Oct 31, 2007 18:16
- Location: Canada
- Contact:
Re: CEGUI::String <-> MySQL (ucs2_unicode_ci)
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.
Space Combat. Planet Exploration. Strategic Domination.
-
- Just popping in
- Posts: 7
- Joined: Wed Nov 04, 2009 16:32
- Location: Austria
- Contact:
Re: CEGUI::String <-> MySQL (ucs2_unicode_ci)
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...
Who is online
Users browsing this forum: No registered users and 33 guests