Maybe you could let MySQL convert it to utf8:
http://dev.mysql.com/doc/refman/5.0/en/charset-convert.html
But of course its better, if you don't have to convert twice.
There is a library supporting utf8 in C++:
http://utfcpp.sourceforge.net/
Maybe you can try with this library you're luck.
Otherwise there are options for converting charcter-sets widely in
differentlibraries in C++.
Maybe you could also solve the problem, when you run the code under a different
os.
regards,
Jens Weller
-------- Original-Nachricht --------
> Datum: Thu, 25 Jun 2009 06:57:47 -0000
> Von: "Robert Bielik" <robert.bielik@...>
> An: DatabaseTemplateLibrary@yahoogroups.com
> Betreff: [DTL] UTF8 strings
> I have an XML which I parse and insert data into a MySQL database, the
> strings are in utf8 format, and although I've setup the columns to be utf8 the
> strings are stored verbatim, i.e. I see the utf8 escape sequences in the
> database (using SQLyog). Before using DTL we just had php put stuff in the
> database, and that works fine, showing the correct characters.
>
> Ideas?
> /Rob
>
>
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01