diff options
author | morpheus65535 <[email protected]> | 2018-05-05 08:03:34 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-05-05 08:03:34 -0400 |
commit | bd7bfa67cbf8bf82534d32bad4497d7dd82e0632 (patch) | |
tree | 6b03dd58e0c2551b7a6feb5081759c4e9e7ce2b3 /bazarr.py | |
parent | f083807ef67bf486717ac0d7f4fe8358d4d37dfd (diff) | |
download | bazarr-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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
|