[sqlalchemy] Re: UnicodeEncodeError on saving to MySQL

2011-09-29 Thread Victor Olex
I am of the opinion that unless you are absolutely certain that the data will be pure ASCII you should declare string fields in model as Unicode type rather than String. Also have a look at http://farmdev.com/talks/unicode/ because it will help you understand what the dreaded error really means.

Re: [sqlalchemy] Re: UnicodeEncodeError on saving to MySQL

2011-09-29 Thread Benjamin Sims
Thanks to you both. Michael, I must apologise - I had overlooked that another field was receiving Unicode characters. Changing this field to the Unicode type seems to have fixed the problem. Victor, you are right of course - I do have an understanding of what the dreaded error actually means,