| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | gani b. c. | Date: | October 2 2006 8:11am |
| Subject: | mysqlpp and wchar_t problem | ||
| View as plain text | |||
hi.. i have a problem using Query class from mysqlpp with wchar_t. i hope somebody can help me with this. i want to insert unicode to table. here is the sample code mysqlpp::Connection con( "test", "localhost", "test", "" ); mysqlpp::Query query = con.query(); char * test = "abcdefghij"; wchar_t * wtest = L"abcdefghij"; query << "INSERT INTO tes VALUES( '" << test << "')"; query.execute(); query << "INSERT INTO tes VALUES( '" << wtest << "')"; query.execute(); the char test will gave the right result, 'abcdefghij' inserted to db. but the wchar_t wtest not give the right result, the record filled with '004A00F4'. it seems Query not welcome unicode. so how can I insert unicode using mysqlpp?? thx.
| Thread | ||
|---|---|---|
| • mysqlpp and wchar_t problem | gani b. c. | 2 Oct |
| • Re: mysqlpp and wchar_t problem | Warren Young | 2 Oct |
| • mysql++ memory usage | Alex Burton | 3 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 4 Oct |
| • Re: mysql++ memory usage | Alex Burton | 4 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 5 Oct |
| • Re: mysql++ memory usage | Warren Young | 5 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • RE: mysql++ memory usage | Matt Dargavel | 6 Oct |
| • Re: mysql++ memory usage | Warren Young | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 7 Oct |
| • Re: mysql++ memory usage | Matt Dargavel | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 12 Oct |
| • Exporting classes | Matt Dargavel | 19 Oct |
| • Re: Exporting classes | Warren Young | 20 Oct |
| • RE: Exporting classes | Matt Dargavel | 20 Oct |
| • Re: mysql++ memory usage | Carlos Flores | 4 Oct |
| • Re: mysqlpp and wchar_t problem | gani b. c. | 3 Oct |
