Re: unicode html



Sybren Stuvel wrote:
Jim enlightened us with:
For example, I am programming a script that makes html pages, but I
do not have the ability to change the "Content-Type .. charset=.."
line that is sent preceeding those pages.

"line"? Are you talking about the HTTP header? If it is wrong, it
should be corrected. If you are in control of the content, you should
also be control of the Content-Type header. Otherwise, use a <meta>
tag that describes the content.
Ah, but I cannot change it. It is not my machine and the folks who own
the machine perceive that the charset line that they use is the right
one for them. (Many people ship pages off this machine.)

Unfortunately, the <meta> tag idea also does not fly: see
http://www.w3.org/TR/html4/charset.html
in section 5.2.2 where it states that in a contest the charset
parameter wins.

My only point is that things are complicated and that there are times
when HTML entities are the answer (or anyway, an answer).

Jim

.



Relevant Pages

  • Re: OT - Perl Script in Apache
    ... a Perl script that is supposed to do this, ... The program posted puts out ... for there is no need to generate a HTTP header (which could be ... sent as part of the page presented containing the img tag)? ...
    (freebsd-questions)
  • Re: mime charset problem
    ... i have a german website and need to use german characters like äöü. ... the charset must be configured properly on your web server. ... browsers will honor the HTTP header. ...
    (alt.html)
  • Re: About charset setting and replacing
    ... the following meta is extract from some page (the source HTML ... The meta tag itself is correct, though it will be ignored, if the server specifies a charset parameter in actual HTTP headers. ... UTF-8 is a "charset" in the technical sense that the HTTP header and its simulation uses the name "charset" for the parameter that specifies the character encoding. ...
    (comp.infosystems.www.authoring.html)
  • Re: How to tell character encoding?
    ... highest priority to lowest): ... I guess I only tested META tag with no HTTP header. ... The reason being that the server serving up some static content doesn't always know the charset it's in, but the person writing that content does. ...
    (comp.lang.java.programmer)
  • Re: ??? Crazy XHTML Strict Validation Problem ???
    ... specifies content-type, BUT, there is also a tag (a.k.a., ... "thingy") that supplements the HTTP headers. ... So, if the HTTP header, proper, indicates content-type of 'text/html' ... and the tag indicates something else, ...
    (comp.infosystems.www.authoring.html)