MySQL Forums
Forum List  »  Connector/Python

Inserting unicode strings
Posted by: Anjanesh Lekshminarayanan
Date: November 21, 2009 03:26PM

Im getting some data from the web & inserting to a MySQL 5.1 db via mysql-python.

s = conn.escape_string(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 15: ordinal not in range(128)

How do I insert a unicode string ?

Thanks

Anjanesh

Options: ReplyQuote


Subject
Written By
Posted
Inserting unicode strings
November 21, 2009 03:26PM


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.