encode every "style" file in utf-8

This commit is contained in:
Paul Franklin 2014-02-09 13:35:55 -08:00
parent 05f8557852
commit ae69eb666b

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 in sorted(self.map.keys()): # enable diff of archived copies