pull/15/head
DiMartinoXBMC 2016-11-17 18:16:47 +03:00
parent 7effa30860
commit 3744b3ccd7
1 changed files with 2 additions and 1 deletions

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())