encode every "style" file in utf-8

This commit is contained in:
Paul Franklin 2014-02-09 13:34:49 -08:00
parent f024b37501
commit 4fb98d5fbb

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