71 for index in range(QsciScintilla.STYLE_MAX + 1): |
71 for index in range(QsciScintilla.STYLE_MAX + 1): |
72 styleIsUsed[index] = True |
72 styleIsUsed[index] = True |
73 styleIsUsed[QsciScintilla.STYLE_DEFAULT] = True |
73 styleIsUsed[QsciScintilla.STYLE_DEFAULT] = True |
74 |
74 |
75 try: |
75 try: |
76 f = open(filename, "w") |
76 f = open(filename, "w", encoding = "utf-8") |
77 |
77 |
78 f.write( |
78 f.write( |
79 '''<!DOCTYPE html PUBLIC "-//W3C//DTD''' |
79 '''<!DOCTYPE html PUBLIC "-//W3C//DTD''' |
80 ''' XHTML 1.0 Transitional//EN"\n''') |
80 ''' XHTML 1.0 Transitional//EN"\n''') |
81 f.write( |
81 f.write( |