Edwin said:
My question is where can I find the http header file if I want to
specify the charset?
There is no "header file". The HTTP headers are some lines sent by the
server to the client (and vice versa, but those are not relevant in this
context) before they send the requested file.
They include various status information and meta-data about the file
that's about to be sent.
If your page is being dynamically generated using a scripting language,
then you can generally influence the HTTP headers from within the script.
For example, in Perl you can do this:
#!/usr/bin/perl
print "Content-Type: text/html; charset=utf-8\n";
print "X-Custom-Header-1: foobar\n\n";
Or in PHP:
<?php
header('Content-Type: text/html; charset=utf-8');
header('X-Custom-Header-1: foobar')
?>
Or in ASP:
<%
Response.ContentType = "text/html"
Response.Charset = "utf-8"
Response.AddHeader "X-Custom-Header-1", "foobar"
%>
If you are using static files, then setting HTTP headers will require
manipulating the server's settings.
For example, in Apache you can use ".htaccess" config files to set headers:
Header set Content-Type text/html;charset=utf-8
Header set X-Custom-Header-1 foobar
Or instead:
Header set X-Custom-Header-1 foobar
AddType text/html .html
AddCharset utf-8 .utf8
and then a file with the name "myfile.html.utf8" will be served with the
same headers as my earlier examples.
Other servers will use other methods.