Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 85ae1e2

Browse files
committed
Merge pull request #82 from le717/issue-72
Write output file using UTF-8 encoding
2 parents 3c74c74 + 00bbc65 commit 85ae1e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sass.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from __future__ import absolute_import
1414
import collections
1515
import inspect
16+
from io import open
1617
import os
1718
import os.path
1819
import re
@@ -166,7 +167,8 @@ def compile_dirname(
166167
if s:
167168
v = v.decode('UTF-8')
168169
mkdirp(os.path.dirname(output_filename))
169-
with open(output_filename, 'w') as output_file:
170+
with open(output_filename, 'w',
171+
encoding="UTF-8") as output_file:
170172
output_file.write(v)
171173
else:
172174
return False, v

0 commit comments

Comments
 (0)