fixed unicode file support

master
BodgeMaster 2020-02-23 23:37:55 +01:00
parent daff15e873
commit d76179bad3
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ for x in parsed:
file_content = file_in.read()
file_in.close()
file_content = file_content.replace("%" + x + "%", parsed[x])
file_content = file_content.decode('utf-8').replace("%" + x + "%", parsed[x]).encode('utf-8')
file_out = open(fpath, "w")
file_out.write(file_content)