summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-05-05 08:03:34 -0400
committermorpheus65535 <[email protected]>2018-05-05 08:03:34 -0400
commitbd7bfa67cbf8bf82534d32bad4497d7dd82e0632 (patch)
tree6b03dd58e0c2551b7a6feb5081759c4e9e7ce2b3 /bazarr.py
parentf083807ef67bf486717ac0d7f4fe8358d4d37dfd (diff)
downloadbazarr-bd7bfa67cbf8bf82534d32bad4497d7dd82e0632.tar.gz
bazarr-bd7bfa67cbf8bf82534d32bad4497d7dd82e0632.zip
Force system encoding to UTF8 to prevent errors like #66
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bazarr.py b/bazarr.py
index e5e248770..b718a77c3 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -5,6 +5,8 @@ gc.enable()
import os
import sys
+reload(sys)
+sys.setdefaultencoding('utf8')
sys.path.insert(0,os.path.join(os.path.dirname(__file__), 'libs/'))
import sqlite3