MySQL Forums
Forum List  »  Connector/C++

Re: Retrieving UTF8 strings from DB
Posted by: Krzysztof Barski
Date: May 30, 2010 03:44PM

OK so a couple of hours later I found an answer to my own question, which is:
1) use of WideCharToMultiByte to convert everything that goes into database
2) MultiByteToWideChar to convert anything that came from db to be displayed onscreen in my unicode app.

Shame though, that i had to switch to Mysql++ and try their documentation and examples. So anyone interested in this topic can test these functions in conjunction with Connector/C++ for themselves, because i won't.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Retrieving UTF8 strings from DB
1693
May 30, 2010 03:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.