Thanks, Twey, but how do I check or change HTTP headers? The pages are hosted on a service provider - do they decide what header is provided?
The headers sent can be checked with a browser plugin or extension, or by connecting to your webserver with a plain-text application such as telnet:
Code:
twey@peordh /home/twey $ telnet twey.co.uk 80
Trying 82.110.105.24...
Connected to twey.co.uk.
Escape character is '^]'.
HEAD / HTTP/1.1
Host: twey.co.uk
Connection: close
HTTP/1.1 200 OK
Date: Sat, 24 Mar 2007 14:23:24 GMT
Content-Type: text/html;charset=utf-8;
Expires: Sat, 24 Mar 2007 14:23:24 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Server: Apache/2.0.55 (Red Hat)
X-Powered-By: PHP/4.4.4
Pragma: no-cache
Set-Cookie: PHPSESSID=c2b041c0446210e8f8d6f58995933c02; path=/
With regard to writing the files, I use VB6 to output the .htm file. However, I have verified that the output is not putting in any "funnies" by opening the .htm files in metapad.
There's nothing wrong with the file, it's just not UTF-8. I can't remember how to specify the character encoding to use when writing to a file in VB6, but an equally valid solution would be to change your headers or <meta> elements to use the correct encoding (ISO-8859-1) instead of UTF-8.
Also note that if you use <meta> elements to declare the character encoding, your character encoding of choice must be ASCII-compatible.
Bookmarks