Serhiy Storchaka <[email protected]> added the comment:
In simplejson:
>>> simplejson.dumps({u"greeting": "hi", "currency": "€"}, ensure_ascii=False,
>>> encoding="utf8")
u'{"currency": "\u20ac", "greeting": "hi"}'
>>> simplejson.dumps({u"greeting": "hi", "currency": "€"}, ensure_ascii=False)
u'{"currency": "\u20ac", "greeting": "hi"}'
I think it makes sense to fix the case for "utf-8".
----------
nosy: +bob.ippolito, serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33255>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com