python3 code execution cannot decode characters other than utf-8 #9

Closed
opened 2026-02-16 09:19:18 -05:00 by yindo · 1 comment
Owner

Originally created by @wakaka6 on GitHub (Jul 17, 2024).

the requets payload is

{
    "language": "python3",
    "code": "print('测试'.encode('gbk').decode('gbk'))"
}

image

Originally created by @wakaka6 on GitHub (Jul 17, 2024). the requets payload is ``` { "language": "python3", "code": "print('测试'.encode('gbk').decode('gbk'))" } ``` ![image](https://github.com/user-attachments/assets/efb11d28-5ed9-4bda-97a1-687be2aaead2)
yindo closed this issue 2026-02-16 09:19:18 -05:00
Author
Owner

@wakaka6 commented on GitHub (Jul 17, 2024):

Version dify-sandbox:0.2.4 works well

@wakaka6 commented on GitHub (Jul 17, 2024): Version dify-sandbox:0.2.4 works well
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-sandbox#9