Re: [users@httpd] meta http-equiv useless??

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

 



greg wm wrote:

i've landed in a character set mire, i need help from someone who knows..

i used wget to copy the entire http://nonviolentpeaceforce.org site to
http://nvpf.org/np.  the former is in m$ asp, the latter captured as html.

as you can see, the capture is mostly fine, including spanish characters
in the text (eg año), however the spanish characters in the menus didn't
do quite so well (eg Misi?n)

if i tell galeon, instead of automatic encoding, use western iso-8859-1,
then, presto, the page appears nicely.   but i don't have to do that to
see the original, nor do i have to do that for anybody else's pages, and of course i can't expect our audience to go and fiddle with that in their browsers.

second question:  why doesn't the meta http-equiv header do anything?

What happens if you remove the defaultcharset entirely; have Apache
provide no hinting at the encoding; does the browser respect the meta
tag?

The http headers are authoritative, and override any metadata.  If you
rather control your encoding with meta tags, turn off charsets entirely.

You know you can use telnet, or netcat (nc) to your host port 80 to

GET /yoururl HTTP/1.1
Host: yourhost

and see what http headers are returned.  e.g.

GET /index.html HTTP/1.1
Host: www.example.com

You need to have one blank line after the host header before the server
will return a response.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux