Skip to content

Commit 2827331

Browse files
committed
https://github.com/aviaryan/VSCodeNotebook/issues/10
1 parent ecf1b00 commit 2827331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode_notebook/cryptlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def get_file_list():
106106
def update_file(funcptr, flist, key):
107107
failed = False
108108
for file in flist:
109-
fptr = open(file, 'r')
109+
fptr = open(file, 'r', encoding='utf8')
110110
data = fptr.read()
111111
fptr.close()
112-
fptr = open(file, 'w')
112+
fptr = open(file, 'w', encoding='utf8')
113113
try:
114114
newData = funcptr(key, data)
115115
except Exception:

0 commit comments

Comments
 (0)