We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3997621 commit 9c25132Copy full SHA for 9c25132
ipykernel/debugger.py
@@ -351,7 +351,7 @@ async def dumpCell(self, message):
351
code = message['arguments']['code']
352
file_name = get_file_name(code)
353
354
- with open(file_name, 'w') as f:
+ with open(file_name, 'w', encoding='utf-8') as f:
355
f.write(code)
356
357
reply = {
@@ -378,7 +378,7 @@ async def source(self, message):
378
}
379
source_path = message["arguments"]["source"]["path"]
380
if os.path.isfile(source_path):
381
- with open(source_path) as f:
+ with open(source_path, encoding='utf-8') as f:
382
reply['success'] = True
383
reply['body'] = {
384
'content': f.read()
0 commit comments