content
content copied to clipboard
bug(search): unicode characters display wrong on indexed mode
Environment
Reproduction
- add some unicode content to
playground/search/content - run
pnpm dev searchto play the search playground - type any words to search, check the
searchresult in chrome dev tools network panel
Describe the bug
Unicode characters display wrong in chrome network panel because the Content-Type of headers is text/plain without setting charset in indexed mode.
According to 7.1 The Text Content-Type, default character set is US-ASCII if charset is absent which caused the problem.
Screenshots:
It's better to set charset to utf-8.
Additional context
No response
Logs
No response
Hi, @farnabaz . I created a PR #2729 fixed this problem. Please take a look.