In our last episode,
< >, the lovely and
talented Robert broadcast on comp.lang.javascript
:
> I have some questions about these meta tags:
><meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> What charset should I use? Is this latin-1? I have MacOS 10.2.6.
> Where should I have looked for this information.
First http-equiv is to supply information usually supplied in http
headers by the server. Unless you know your server is wakko, you
know you are doing something very unusual, or you are catering to a
particular browser that is very broken or likely to have some
unreasonable or unusual defaults, you probably should leave
http-equiv alone. Don't include such meta elements unless you know
they are needed and you know what you are trying to accomplish with
them.
This particular one is next to useless. It says the document is
html. But if the browser doesn't already know (or assume) this
already, it won't know what a meta element is. It declares
iso-8859-1 as the character set, which is what most browsers in
English-speaking countries and much of Europe will assume if they are
told nothing.
Yes, it is more or less what is known as "latin 1" in some systems.
If you are using character entities (such as é

for accented
characters, and the q element for quotations, you probably won't
notice any problems even if you are not actually using iso-8859-1.
><meta http-equiv="Content-Script-Type" content="text/javascript">
> If I include this meta tag, do I need to specify content type on the
> script tag?
Yes.
--
Lars Eighner -finger for geek code-
http://www.io.com/~eighner/
If it wasn't for muscle spasms, I wouldn't get any exercise at all.