Commit d12f3483 authored by Yusei Tahara's avatar Yusei Tahara

Revert "erp5_core: Fix unicode bug on ZODB History view."

This reverts commit 40fded3e.

It is not good to mix unicode and str for UI. Use utf8 str only.
parent 4df412c9
...@@ -13,7 +13,7 @@ def beautifyChange(change_dict): ...@@ -13,7 +13,7 @@ def beautifyChange(change_dict):
for property_name, property_value in sorted(change_dict.items()): for property_name, property_value in sorted(change_dict.items()):
if isinstance(property_value, six.binary_type): if isinstance(property_value, six.binary_type):
try: try:
property_value = six.text_type(property_value, 'utf-8') six.text_type(property_value, 'utf-8')
except UnicodeDecodeError: except UnicodeDecodeError:
property_value = '(binary)' property_value = '(binary)'
change_list.append('%s:%s' % (property_name, property_value)) change_list.append('%s:%s' % (property_name, property_value))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment