Skip to content

Commit 5475c70

Browse files
committed
修补js代码块编码错误问题
1 parent 954d813 commit 5475c70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aipyapp/exec/prun.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def __call__(self, block) -> Dict[str, Any]:
4343
shell=False,
4444
capture_output=True,
4545
text=True,
46+
encoding="utf-8",
47+
errors="ignore",
4648
timeout=self.timeout
4749
)
4850
stdout = cp.stdout.strip() if cp.stdout else None

0 commit comments

Comments
 (0)