On Tue, Oct 09, 2007 at 03:05:20PM +0100, MJ Ray wrote:
Chris G cl@isbd.net wrote:
I have a web page which has a couple of special characters which are ISO-8859-1 encoded, 'View Source' shows that the header is as follows:- [...]
Check the HTTP header (curl -I or wget --head) of the URL. The HTTP header and XML opening both trump the http-equiv meta, as described in http://www.w3.org/International/O-charset#declaring with links to how to correct things.
OK, thanks, that *explains* it then:-
HTTP/1.1 200 OK Date: Tue, 09 Oct 2007 16:04:22 GMT Server: Apache/2.2.6 (Fedora) Content-Length: 2939 Connection: close Content-Type: text/html; charset=UTF-8
However, how do I get a file which has some ISO-8859-1 encodings in it to be transmitted correctly by the web server?
But also, you should be using UTF-8 for most things by now. ;-)
Yes, I know, that's why I asked if Firefox was dropping broad hints in my direction. :-) However since I'm using an editor which doesn't yet know about UTF-8 that's a little difficult for the moment, the next major version *will* know about UTF-8 but that doesn't help me at the moment. Note that these files are plain text files (well, reStructuredText files) and the HTML is generated on the fly, I need to be able to see the characters correctly displayed when viewed as text as well as when viewed via the browser.