Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Inserting unicode strings (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>