Closed fgmacedo closed 8 years ago
When escaping objects to text, we are using str, but if the obj representation contains invalid ascii caracters, the code breaks:
str
UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 12: ordinal not in range(128)
This pull request replaces str with the Django's force_text that properly handles unicode.
force_text
When escaping objects to text, we are using
str
, but if the obj representation contains invalid ascii caracters, the code breaks:This pull request replaces
str
with the Django'sforce_text
that properly handles unicode.