MySQL Forums
Forum List  »  Connector/Python

Re: Cannot display MySQL latin2_croation_ci characters in Python script
Posted by: Geert Vanderkelen
Date: April 24, 2013 05:40AM

If you can't change the shell to latin2, you might convert the result to UTF8:


print(row[0].decode('latin2').encode('utf8'))

Geert Vanderkelen
Software Developer at Oracle

Options: ReplyQuote


Subject
Written By
Posted
Re: Cannot display MySQL latin2_croation_ci characters in Python script
April 24, 2013 05:40AM


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.