mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-11-15 16:58:43 +08:00
editor.go read bytes one at a time; byte >= 0x20 was treated as a single rune, so multi-byte UTF-8 chars (Chinese, emoji, etc.) became garbled. Add decodeRune to reassemble multi-byte sequences from the raw byte stream.