Skip to content

Commit f780e20

Browse files
committed
Merge pull request adampresley#26 from vaicine/master
Prevent UnicodeEncodeError on non ascii characters in html
2 parents afa2fbc + 5b73354 commit f780e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ViewInBrowserCommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def run(self, edit):
8383
region = sublime.Region(0, self.view.size())
8484
text = self.view.substr(region)
8585

86-
tempFile.write(text)
86+
tempFile.write(text.encode('utf-8'))
8787
tempFile.close()
8888

8989
fileToOpen = tempFile.name

0 commit comments

Comments
 (0)