content icon indicating copy to clipboard operation
content copied to clipboard

bug(search): unicode characters display wrong on indexed mode

Open HADB opened this issue 1 year ago • 1 comments

Environment

Reproduction

  1. add some unicode content to playground/search/content
  2. run pnpm dev search to play the search playground
  3. type any words to search, check the search result 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:

iShot_2024-07-25_15 39 44

It's better to set charset to utf-8.

Additional context

No response

Logs

No response

HADB avatar Jul 25 '24 07:07 HADB

Hi, @farnabaz . I created a PR #2729 fixed this problem. Please take a look.

HADB avatar Jul 25 '24 07:07 HADB