fixed unicode file support
parent
daff15e873
commit
d76179bad3
|
@ -22,7 +22,7 @@ for x in parsed:
|
||||||
file_content = file_in.read()
|
file_content = file_in.read()
|
||||||
file_in.close()
|
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 = open(fpath, "w")
|
||||||
file_out.write(file_content)
|
file_out.write(file_content)
|
||||||
|
|
Loading…
Reference in New Issue