Dumps Dict values in UTF-8 instead of ASCII
This is how they are stored in the database and so we must use also the UTF-8 version when using unaccent to properly remove the accents. issue11418 (grafted from db29f8a10314f48f68be5b68ec075ae4f37edb2f) --HG-- branch : 6.0
This commit is contained in:
1 parent
842f30cf59
commit
c7907aa6ea
1 file changed
+2
-1
@@ -14,7 +14,8 @@ from .field import Field, SQL_OPERATORS
|
||||
|
||||
# Use canonical form
|
||||
dumps = partial(
|
||||
json.dumps, cls=JSONEncoder, separators=(',', ':'), sort_keys=True)
|
||||
json.dumps, cls=JSONEncoder, separators=(',', ':'), sort_keys=True,
|
||||
ensure_ascii=False)
|
||||
|
||||
|
||||
class ImmutableDict(dict):
|
||||
|
||||
Reference in new issue
Block a user