From bd7bfa67cbf8bf82534d32bad4497d7dd82e0632 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 5 May 2018 08:03:34 -0400 Subject: [PATCH] Force system encoding to UTF8 to prevent errors like #66 --- bazarr.py | 2 ++ 1 file changed, 2 insertions(+) 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