mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-30 00:45:14 -05:00
On Windows, Python defaults to the system locale encoding (e.g. GB2312 on Chinese systems). This caused files written via open-terminal to be saved in the wrong encoding, breaking tool-call chaining with non-ASCII content. Added explicit encoding="utf-8" to all 9 text-mode open() calls in main.py and notebooks.py.