Commit 07fe8603 authored by echel0n's avatar echel0n
Browse files

Fixed UnicodeDecodeError for retrieving messages.json data

parent f5110a04
# Changelog
- * 3961f78 - 2017-10-20: Added ability to select what you want to restore from backups
- * 9738545 - 2017-10-21: Fixed UnicodeDecodeError for retrieving messages.json data
- * f5110a0 - 2017-10-20: Added ability to select what you want to restore from backups
- * c470b37 - 2017-10-19: Release v9.1.46
- * b896e96 - 2017-10-19: Fixed issue #94 - manual post processing error
- * b0b9201 - 2017-10-18: Release v9.1.45
......
......@@ -378,7 +378,7 @@ class WebRoot(WebHandler):
locale_file = os.path.join(sickrage.LOCALE_DIR, sickrage.srCore.srConfig.GUI_LANG, 'LC_MESSAGES/messages.json')
if os.path.isfile(locale_file):
self.set_header('Content-Type', 'application/json')
with io.open(locale_file, 'r') as f:
with io.open(locale_file, 'r', encoding='utf8') as f:
return f.read()
def apibuilder(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment