Today, I have looked into HTML code of facebook.com, and found something like this:
<input type="hidden" value="€,´,€,´,水,Д,Є" name="charset_test"/>
It’s repeated two times inside the <form>...</form>.
Any idea what this code might be useful for – some kind of server-side client charset detection? As far as I know, browser charset is being transmitted in HTTP request anyway (an “Accept-Charset” header).
Apparently so.
The Euro sign is useful for charset detection because there are so many ways of encoding it:
It’s supposed to transmitted in the HTTP
Content-Typeheader, but that doesn’t mean that user agents actually get it right.