From b7f1d28347df3fa60d6bd0fccb154fa8c1f03cde Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jul 2012 11:30:47 +0200 Subject: [PATCH] Do some default encoding on start. fix #520 --- couchpotato/core/logger.py | 2 +- couchpotato/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/logger.py b/couchpotato/core/logger.py index 1f5206ac..8d8c9f59 100644 --- a/couchpotato/core/logger.py +++ b/couchpotato/core/logger.py @@ -48,7 +48,7 @@ class CPLog(object): else: msg = msg % ss(replace_tuple) except: - self.error('Failed encoding stuff to log: %s' % traceback.format_exc()) + self.logger.error(u'Failed encoding stuff to log: %s' % traceback.format_exc()) if not Env.get('dev'): diff --git a/couchpotato/environment.py b/couchpotato/environment.py index e804170d..d8c03c7c 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -11,7 +11,7 @@ class Env(object): _appname = 'CouchPotato' ''' Environment variables ''' - _encoding = '' + _encoding = 'UTF-8' _debug = False _dev = False _settings = Settings()