OK, you use a C "char*" using an UTF-8 encoding. On Friday 09 April 2004 11:45, Hirofumi Fujiwara wrote: > > Hi, > > I have a question. I have read that since MySQL 4.1, VARCHAR type can > > hold unicode characters. But, it seems that the API of the C library use > > to send queries to the server still use 'const char*' for the type of the > > query. So, praticaly, if I have a unicode string stored in C, how can I > > use it with the C API? > > Thanks. > > I use unicode(UTF-8) strings as following. > > mysql_query( mysql, "SELECT.... inlude Japanese characters(KANJI) " ); > > I think that this might answer your question. > > ------------------------------------------------------------ > Hirofumi Fujiwara (Tokyo JAPAN) enjoy JAVA and Puzzle World > [EMAIL PROTECTED] http://www.pro.or.jp/~fuji/index-eng.html > [EMAIL PROTECTED] Puzzle Japan http://www.puzzle.jp/ > ------------------------------------------------------------
-- Prof. Pascal Francq Université Libre de Bruxelles CAD/CAM Department Avenue F.D. Roosevelt, 50 CP 165/14 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 47 24 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]