> Can somebody give me pointers how to store and
> retrieve data in Hindi using MySQL C API and MySQL in
> general. Since alll the hindi text will be in unicode
> format and C API uses char* parameter how do I
> interface between my Hindi text data and C API. DO I
> convert them to some other format like utf-8 etc.

I don't have very much experience writing clients in C, but I have been
following the MySQL unicode development.  If you haven't already it
might help to look at the MySQL source that deals with unicode.  In the
strings directory there are two files ctype-utf8.c and ctype-ucs2.c. 
All the sorting and string comparisons for unicode are defined there.  I
think the conversion from char* to unicode is done there.  I suggest you
look at the latest source for 4.1.2 in the bitkeeper tree because
changes are still being made to this code.  I expect there will be more
significant changes in the next couple of weeks.  

It might also help to read the SET CHARACTER SET and SET NAMES commands
here:
http://www.mysql.com/doc/en/Charset.html

Good luck,
Jeremy


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to