05.12.2012 18:47, Daniel Walter пишет: > On 05.12.2012 15:04, Michael Evdokimov wrote: >> Hello! >> >> Please consider applying this patch. >> The main reason is that we must call >> mysql_options(MYSQL_SET_CHARSET_NAME) right before calling >> mysql_real_connect(). >> >> It allows the following: >> >> soci::session db( soci::mysql, "user=billing password=billing >> dbname=billing charset=utf8" ); >> >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> >> >> >> _______________________________________________ >> soci-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/soci-users >> > Hi Michael, > > in my projects i am currently executing these two statements right after > connect: > > sql << "SET character_set_client=utf8"; > sql << "SET character_set_results=utf8"; > > Fix this your problem too? > > Mit freundlichen Grüßen, > B.Sc. Daniel Walter > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > soci-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/soci-users
That was my first attempt to fix this problem. In my project I have to use option AUTO_RECONNECT. And after this reconnection happens inside of mysql_query() the option sql << "SET character_set_client=utf8"; doesn't work. That's why it doesn't work -- Best regards, Michael Evdokimov Network Solutions, Moscow, Russia, Office: +7-495-7950677, Mobile: +7-963-6054013 Web: www.lanbilling.ru, www.lanbilling.tv, www.helpdesk2.ru ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
