CharSet on This Page:
Go to utf-8.html
CharSet
File is .html
If there exists <meta charset="utf-8">,
then document.characterSet returns "UTF-8"
If not, it returns "windows-1252"
File is .php
Even if there doesn't exist <meta charset="utf-8">,
document.characterSet always returns "UTF-8"
Tested on
- Windows: Chrome
- Windows: FireFox
- Mac: Safari v13.1.3
- Smartphone: Chrome
- Smartphone: FireFox
- Smartphone: Edge
- Smartphone: Opera