From 1a24bf8d53fedf5caa9f0fb2481a9de7bf87d4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 26 Jul 2008 14:11:51 +0200 Subject: [PATCH] Set default encoding to UTF-8 --- trytond/report/report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/report/report.py b/trytond/report/report.py index 8b8e804625..07f82a5367 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -485,6 +485,8 @@ class Report(object): encoding = 'UTF-8' if encoding == 'cp1252': encoding = '1252' + if not encoding: + encoding = 'UTF-8' try: if os.name == 'nt': language = _LOCALE2WIN32.get(language, language)