On Thu, 30 Aug 2012 12:38:26 -0400 Candy Chiu <[email protected]> wrote:
CC> I have successfully compiled soci and soci-odbc using Visual Studio 2010. CC> I managed to connect to a DB server and retrieve some data. Everything CC> worked out well, except I had to change the Character Set property of the CC> project from "Use Unicode Character Set" to "Use Multi-Byte Character Set" CC> to get the code compiled. Since I don't have much experience with the CC> character sets, I am a little leery of changing the default value. Would CC> someone provide some insights into why the Multi-Byte Character Set is CC> required? If it is something easy to fix, I am glad to do it. Unfortunately this is not something easy to fix. You have to build any code using SOCI in MBCS, i.e. non-Unicode, mode as SOCI doesn't support Unicode, at least not in the Windows sense of the word where Unicode means wchar_t/UTF-16 (you can work with UTF-8 strings in the database with SOCI, of course, but this doesn't count as "Unicode" under Windows). Regards, VZ
pgpRm3iobNPNR.pgp
Description: PGP signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
