Skip to content

Commit

Permalink
fix: add encoding paramter for windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed May 3, 2022
1 parent c186f82 commit 797263f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kiara/data_types/included_core_types/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def render_as__string(
max_lines = render_config.get("max_lines", 34)
try:
lines = []
with open(data.path, "r") as f:
with open(data.path, "r", encoding="utf-8") as f:
for idx, l in enumerate(f):
if idx > max_lines:
lines.append("...\n")
Expand Down Expand Up @@ -140,7 +140,7 @@ def render_as__terminal_renderable(
max_lines = render_config.get("max_lines", 34)
try:
lines = []
with open(data.path, "r") as f:
with open(data.path, "r", encoding="utf-8") as f:
for idx, l in enumerate(f):
if idx > max_lines:
lines.append("...\n")
Expand Down

0 comments on commit 797263f

Please sign in to comment.