Encoding according to sys.getfilesystemencoding() in stead of hardcoded iso-8859-1
svn: r9958
This commit is contained in:
parent
bbd8b9fcb8
commit
e7b15b8aa5
@ -28,6 +28,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import sys
|
||||
from time import localtime
|
||||
from gettext import gettext as _
|
||||
|
||||
@ -193,7 +194,8 @@ class CalendarWriter:
|
||||
self.flist[family_handle] = 1
|
||||
|
||||
def writeln(self, text):
|
||||
self.g.write('%s\n' % (text.encode('iso-8859-1')))
|
||||
#self.g.write('%s\n' % (text.encode('iso-8859-1')))
|
||||
self.g.write('%s\n' % (text.encode(sys.getfilesystemencoding())))
|
||||
|
||||
def export_data(self, filename):
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import sys
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@ -171,7 +172,8 @@ class CardWriter:
|
||||
self.plist[p] = 1
|
||||
|
||||
def writeln(self, text):
|
||||
self.g.write('%s\n' % (text.encode('iso-8859-1')))
|
||||
#self.g.write('%s\n' % (text.encode('iso-8859-1')))
|
||||
self.g.write('%s\n' % (text.encode(sys.getfilesystemencoding())))
|
||||
|
||||
def export_data(self, filename):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user