changeset 2fa2c08bfde2 in trytond:6.0 details: https://hg.tryton.org/trytond?cmd=changeset&node=2fa2c08bfde2 description: 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) diffstat: trytond/model/fields/dict.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 4e84adc930d0 -r 2fa2c08bfde2 trytond/model/fields/dict.py --- a/trytond/model/fields/dict.py Sat Apr 16 11:25:38 2022 +0200 +++ b/trytond/model/fields/dict.py Mon Apr 18 19:40:01 2022 +0200 @@ -14,7 +14,8 @@ # 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):