Unicode in devtools' network panel not rendering correct (seems wrong encoding)
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(Not tracked)
People
(Reporter: dragove, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
15 bytes,
application/json
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Steps to reproduce:
in terminal, create a file contains Chinese characters and open it in firefox.
e.g.
echo '{"name":"我"}' > demo.json
firefox demo.json
open devtools, enter network panel and refresh.
click the row captured by network. And look at the response tab.
Also, when I encountered a big json response with Chinese, in the network panel, some of them are correctly rendered but others are broken. It seems they are the same bug.
Actual results:
The content in response tab shows wrong content. But the content on the firefox main content panel is correct
Expected results:
show the correct Chinese character.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Note that this doesn't reproduce if you load the attachment from Bugzilla, because it serves it as UTF8.
You need to download the attachment, and load it as file:// (or probably you can setup a simple server which doesn't set proper encoding either).
Comment 3•1 year ago
|
||
Also we seem to have an old bug around this. STR there might be old
We should check how Firefox renders the character properly (see if there is some kind of character detection to pick the right encoding), and do the same thing
Description
•