2025-01-17 15:45:35 [ERROR] (mdbook::utils): Error: stream did not contain valid UTF-8
Open
Nobody has claimed this yet.
C-bug
- Dominant language
- Rust
- Stars
- 22.2k
- Forks
- 1.9k
- PR merge metrics
- PR metrics pending
Description
Problem
2025-01-17 15:45:35 [ERROR] (mdbook::utils): Error: stream did not contain valid UTF-8
Steps
- mdbook init demo
- cd demo
- mdbook serve
- ctrl+c to exit
- edit SUMMARY.md file in vscode (Encoding: UTF-8)
update
- [Chapter 1](./chapter_1.md)to- [中文](./chapter_1.md)
- save
- mdbook serve, got the error: stream did not contain valid UTF-8
Possible Solution(s)
No response
Notes
No response
Version
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with mdbook init demo, mdbook serve, and a Chinese entry in SUMMARY.md, then inspect how mdbook serve reads that file. Done means the edited UTF-8 SUMMARY.md is accepted and the book serves without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100