From e338c569c5480d264b510b192c626a5d8f3a7662 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Sat, 8 Nov 2014 02:09:54 +0100 Subject: [PATCH] SYS_ENCODING set to System Default --- SickBeard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SickBeard.py b/SickBeard.py index e34ffbcf..d9b3c259 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -127,8 +127,10 @@ class SickRage(object): sickbeard.SYS_ENCODING = None try: - locale.setlocale(locale.LC_ALL, "UTF-8") - locale.setlocale(locale.LC_CTYPE, "UTF-8") + locale.setlocale(locale.LC_ALL, "") + except (locale.Error, IOError): + pass + try: sickbeard.SYS_ENCODING = locale.getpreferredencoding() except (locale.Error, IOError): pass