[Bug] Panic: Invalid UTF-8 char boundary in string slicing with multi-byte characters
Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Dec 17, 2025 · closed Dec 17, 2025
Bug Description
thread '<unnamed>' (119596) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\core\src\str\mod.rs:833:21:
byte index 5 is not a char boundary; it is inside '車' (bytes 3..6) of 物車)
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.0.71
- Feedback ID: cce1e472-fc32-4c22-8526-22ba1662d79d
Errors
[]
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
The language I use is Traditional Chinese(繁體中文).
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.