encode every "style" file in utf-8

This commit is contained in:
Paul Franklin 2014-02-09 13:33:39 -08:00
parent 2c2f42be55
commit 67b5308f6f

View File

@ -149,7 +149,7 @@ class StyleSheetList(object):
Saves the current StyleSheet definitions to the associated file.
"""
xml_file = open(self.__file, "w")
xml_file.write("<?xml version=\"1.0\"?>\n")
xml_file.write('<?xml version="1.0" encoding="utf-8"?>\n')
xml_file.write('<stylelist>\n')
for name, sheet in self.map.iteritems():