Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Apache config help



[Matt Doughty (Re: [tlug] Apache config help) writes:]
>> I did a quick look around, and that is _supposed_ to only affect documents
>> without a charset specified.  However it looks like the solution for peopl
>> who had simmilar problems is to set it to off in httpd.conf.

That doesn't quite gel with what is in
http://httpd.apache.org/docs-2.0/mod/core.html#adddefaultcharset

  "This directive specifies the name of the character set that will be added
  to any response that does not have any parameter on the content type in the
  HTTP headers. This will override any character set specified in the body of
  the document via a META tag. A setting of AddDefaultCharset Off disables
  this functionality. AddDefaultCharset On enables Apache's internal default
  charset of iso-8859-1 as required by the directive."

That's exactly what I'm seeing - the META tag being overridden and the 
charset locked on iso-8859-1.

Anyway, reading the above more carefully, and poking around with Google,
I just made the problem go away. In WWWJDIC's output, intead of starting
each page with: "Content-type: text/html" I have:
"Content-type: text/html; charset=euc-jp".  That did the trick!

Now I need to make sure it doesn't break the other servers, but I doubt it.

Many thanks

Jim

-- 
Jim Breen  (j.breen@example.com  http://www.csse.monash.edu.au/~jwb/)
Computer Science & Software Engineering,                Tel: +61 3 9905 3298
P.O Box 26, Monash University,                          Fax: +61 3 9905 5146
Clayton VIC 3800, Australia      ジム・ブリーン@モナシュ大学

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links