Sometimes I m getting unicode errors like below in my django site when user submit form data.
"'ascii' codec can't encode character u'\u2014' in position 109: ordinal not in range(128)"
How can i reproduce the unicode error in my system
Many Thanks.
Submit the form causing the errors with unicode characters (e.g.é) in it!
This is a very common error in Django projects and it almost always means you are calling str() somewhere. Django uses unicode strings internally but when you call str() you are asking Python to give you an ascii string back, which fails with this message.
If you give us more info, we'll be able to help you further.
Good luck!
str inside a __unicode__ method.