django-mongonaut icon indicating copy to clipboard operation
django-mongonaut copied to clipboard

UnicodeEncodeError in mongonaut_tags

Open lchsk opened this issue 9 years ago • 3 comments

In mongonaut_tags.py there are two similar lines:

(1) return mark_safe("""<a href="{0}">{1}</a>""".format(value, value)) (2) return mark_safe("""<a href="{0}">{1}</a>""".format(url, value.__unicode__()))

Is there a reason for using .__unicode__() in (2)? (It gives me me UnicodeEncodeError on a string that includes unicode characters. Removing .__unicode__() seems to help.)

Cheers

lchsk avatar Jun 30 '15 23:06 lchsk