This commit is contained in:
DiMartinoXBMC committed 2016-11-17 18:16:47 +03:00
1 parent 7effa30860
commit 3744b3ccd7
1 file changed
+2 -1
+2 -1
View File
@@ -2083,7 +2083,8 @@ def localize_path(path):
def encode_msg(msg):
try:
msg = isinstance(msg, unicode) and msg.encode('utf-8') or msg
msg = isinstance(msg, unicode) and msg.encode(
(sys.getfilesystemencoding() not in ('ascii', 'ANSI_X3.4-1968')) and sys.getfilesystemencoding() or 'utf-8') or msg
except:
import traceback
log(traceback.format_exc())