Thanks for your help.

I am no seasoned C programmer so looking into the
source code is out of question.

I am having RichControl in my application that returs
text in Unicode data. So if a user has entered Hindi
text in the text control i have to add them in a
table. For that I will be using C API
mysql_real_query(). Should I send them after
converting to utf-8 or it depends upon how the server
was configured. I mean the server was configured to
use ucs-2 then probably I can send the data as it is
in Unicode and setting the correct length in
mysql_real_query() API. WIndows has inbuilt functions
that can convert from Unicode to utf-8 and vice versa.


Since my application is a general purpose so I dont
know how the server is configured...whether it is
configured for ucs-2 or for utf-8. There how to figure
out so that I can correctly convert the data returned
from mysql_store_result() to Unicode value and display
the result in my app.

I am confused on how the data is returned back and
forth between my client and the server?

Regards
Karam


--- Jeremy March <[EMAIL PROTECTED]> wrote:
> > 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]
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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

Reply via email to