fix parsing config file

This commit is contained in:
Nikos Kouremenos 2005-08-28 10:45:29 +00:00
parent 731de491d2
commit 83c63e85de
1 changed files with 5 additions and 1 deletions

View File

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