Skip to content
Snippets Groups Projects
Commit 83c63e85 authored by nkour's avatar nkour
Browse files

fix parsing config file

parent 731de491
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
##
import os
import locale
from common import gajim
from common import i18n
_ = i18n._
......@@ -52,7 +53,10 @@ class OptionsParser:
return
for line in fd.readlines():
line = line.decode('utf-8')
try:
line = line.decode('utf-8')
except UnicodeDecodeError:
line = line.decode(locale.getpreferredencoding())
self.read_line(line)
fd.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment