You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Samuel Vogel <sa...@gmx.de> on 2007/11/08 20:01:12 UTC
[users@httpd] Weird charakters added to the top of html pages
Hey guys,
I do experience a weird issue. This has been going on for some time though.
Apache adds 3 weird looking charakters to the top of some HTML pages:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
The real file on the command prompt starts like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
I guess this is an encoding issue. But my config file does contain a
"AddDefaultCharset ISO-8859-1".
The page I do refert to does contain the following charset definition:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
May this be the reason? What do I have to do to fix it?
Regards,
Samy
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Weird charakters added to the top of html pages
Posted by Joshua Slive <jo...@slive.ca>.
On Nov 8, 2007 2:24 PM, Samuel Vogel <sa...@gmx.de> wrote:
> Ok, I did think that not saving as UTF8 was the problem:
> But is there some on the fly workaround? Since some of my users seem to
> be to dumb to do it by there selfs.
I don't know what browsers do with the BOM in html files. It is
possible that if you properly mark the file as UTF (in the
Content-Type header, using AddEncoding in httpd.conf), you might have
better luck.
There are various ways to edit files on-the-fly in apache, but they
are very resource-intensive and not a good solution to this problem.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Weird charakters added to the top of html pages
Posted by Samuel Vogel <sa...@gmx.de>.
Ok, I did think that not saving as UTF8 was the problem:
But is there some on the fly workaround? Since some of my users seem to
be to dumb to do it by there selfs.
Regards,
Samy
Joshua Slive schrieb:
> On Nov 8, 2007 2:01 PM, Samuel Vogel <sa...@gmx.de> wrote:
>
>> Hey guys,
>>
>> I do experience a weird issue. This has been going on for some time though.
>> Apache adds 3 weird looking charakters to the top of some HTML pages:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
>> <html>
>>
>
> That's the UTF BOM, added by your editor not apache. See:
> http://www.w3.org/International/questions/qa-utf8-bom
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Weird charakters added to the top of html pages
Posted by Joshua Slive <jo...@slive.ca>.
On Nov 8, 2007 2:01 PM, Samuel Vogel <sa...@gmx.de> wrote:
> Hey guys,
>
> I do experience a weird issue. This has been going on for some time though.
> Apache adds 3 weird looking charakters to the top of some HTML pages:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
> <html>
That's the UTF BOM, added by your editor not apache. See:
http://www.w3.org/International/questions/qa-utf8-bom
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org