Set encoding for all text reads and writes to utf8, as windows defaults to latin1
This commit is contained in:
@@ -34,7 +34,7 @@ class LaTeXFile(TextFile):
|
||||
def _doOpenFile(self, filePath):
|
||||
|
||||
try:
|
||||
self.outFile = open(filePath,mode="wt+")
|
||||
self.outFile = open(filePath,mode="wt+",encoding="utf8")
|
||||
self.outFile.write("\\documentclass[12pt]{report}\n")
|
||||
self.outFile.write("\\usepackage[utf8]{inputenc}\n")
|
||||
self.outFile.write("\n")
|
||||
|
||||
Reference in New Issue
Block a user