The Computer Oracle

Check the character encoding of a given page in Chrome

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open

--

Chapters
00:00 Question
00:41 Accepted answer (Score 76)
01:13 Thank you

--

Full question
https://superuser.com/questions/1187374/...

Question links:
[various things]: https://stackoverflow.com/a/12406142/616...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#googlechrome #encoding

#avk47



ACCEPTED ANSWER

Score 80


In the Chrome console:

document.characterSet

This is the encoding used to display the page, per MDN:

The Document.characterSet read-only property returns the character encoding of the current document. The character encoding is the character set used for rendering the document, which may be different from the encoding specified by the page. (The user can override the encoding.).