Skip to content

Commit

Permalink
force utf-8 to workaround windows defaults #423
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Jan 22, 2021
1 parent 00ead63 commit da37d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/model/postbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def generate_avs_post(self):
file_path = os.path.abspath(os.path.join(os.path.dirname('__file__'), '../xml/flat24hd.xml'))
filt = self.__filter_model.filter
output_xml, _ = HDXmlParser(DspType.MINIDSP_TWO_BY_FOUR_HD, False).convert(str(file_path), filt, metadata)
with open(file_name, 'w+') as f:
with open(file_name, 'w+', encoding='utf-8') as f:
f.write(output_xml)

def __get_file_name(self, metadata):
Expand Down

0 comments on commit da37d7a

Please sign in to comment.