Browse files

also write file with file_encoding

  • Loading branch information...
1 parent ea39a71 commit 13fafaf8834a5a707cc0ce4490417096b59ab22f @heroldus heroldus committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/config_rpm_maker/token/tokenreplacer.py
View
2 src/config_rpm_maker/token/tokenreplacer.py
@@ -156,7 +156,7 @@ def filter_file (self, filename, html_escape=False):
file_content_filtered = self.filter(file_content)
with open(filename, "w") as output_file:
- output_file.write(file_content_filtered.encode('UTF-8'))
+ output_file.write(file_content_filtered.encode(file_encoding))
except MissingTokenException as exception:
raise MissingTokenException(exception.token, filename)
except Exception as e:

0 comments on commit 13fafaf

Please sign in to comment.