MySQL Forums
Forum List  »  Connector/Python

Having problem while showing UTF8 data from MySQL using Python
Posted by: Rozita Raissi
Date: May 27, 2006 03:50AM

Hi everybody,

I have set encoding of my MySQL server to "utf8". I've created a table named as "user" which has "first_name" and "last_name" columns. I've set encoding of table and these two columns to "utf8" too.

I entered some Farsi data in the table manualy. Then I wrote a Python program to show list of all users. My python program shows "?" instead of each farsi character. What can I do to show real Farsi characters?

Also I wrote another program to insert some data into the table. When I enter Farsi characters, it stores each Farsi character as a unicode character whoes length is more than one character. But I want to insert each farsi character as only one character not more.

Please help me.

Regards,
Rozita

Options: ReplyQuote


Subject
Written By
Posted
Having problem while showing UTF8 data from MySQL using Python
May 27, 2006 03:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.