Sunday, March 12, 2017

Checking the display encoding of a web page

Someone asked how to see the encoding Chrome is using to display a page. The poster already found the various indications a server can provide, but sometimes there is no such information supplied with the page.

Fortunately, JavaScript can tell the encoding that the page is actually being rendered with. Just run this in the console:

document.characterSet

No comments:

Post a Comment