Can be set that way. But maybe somee Windows setting must be altered - I read something I only half remember at yahoo clever.
But not in my case - I made a mistake during testing.
And sorry for my fault - stupid me first downloaded the wrong page to test
I retested with K-Meleon, SaeMonkey, Firefox and Lunscape5's Gecko engine.
All tests confirm that the local page does NOT
show UTF8 in autodetect mode.
Offline: <?xml version="1.0" encoding="UTF-8"?>
is not at the top of the code nor any alternative code inside <head>. So it does not show UTF8.
Online: Apache server gives info that internet page is delivered with: Content-Type: text/html; charset=UTF-8
so it shows UTF8 without fault (info copied&pasted from LiveHTTPHeader extension for K-Meleon).
Sometimes servers give wrong info about content type. In this case wrong content encoding can be shown online.
Opera seems to be able to sniff better.
For local use copy&paste: <?xml version="1.0" encoding="UTF-8"?> to the top of the document. More info about alternatives at selfhtml (German html documentation page - parts are available more languages e.g. in English).
But maybe there is a better way?
Edited 1 time(s). Last edit at 12/19/2008 06:52PM by guenter.