Use encoding when postprocessing the documentation files

This commit is contained in:
Robin Dunn
2019-09-17 18:26:21 -07:00
parent 8cd7531c06
commit c3a68bef90

View File

@@ -683,7 +683,7 @@ def postProcess(folder, options):
methods_done = properties_done = False
fid = open(files, "rt")
fid = textfile_open(files, "rt")
orig_text = text = fid.read()
fid.close()
@@ -738,7 +738,7 @@ def postProcess(folder, options):
newtext = addJavaScript(newtext)
if orig_text != newtext:
fid = open(files, "wt")
fid = textfile_open(files, "wt")
fid.write(newtext)
fid.close()