You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Lawrence <st...@nexiaweb.com> on 2003/10/22 19:55:08 UTC

[users@httpd] Russian page not displayed properly in Apache 2.0

Recently I moved a client from an Apache 1.3 server to an Apache 2.0
server. The client has a few pages which are encoded in windows-1251,
the Russian character set. On the old server, and 2 others servers we
have tried, you may load up the page and view the Russian text as it
should be. On the new server, you see garbage where the Russian should
be unless you specifically tell the browser to use the Russian character
set.

We think this is an apache issue, not a browser issue or a page issue.

I have the following lines in my httpd.conf file (the default
installation settings)

AddLanguage ru .ru
AddDefaultCharset ISO-8859-1
LanguagePriority en fr de es it da nl et el ja kr no pl pt pt-br ru ltz
ca sv tw
AddCharset WINDOWS-1251 .cp-1251   .win-1251

The file itself has the meta tag at the top:

<META http-equiv="content-type" content="text/html;
charset=windows-1251">

I have experimented with renaming the file with a .ru.win-1251 extension
and I did get to view the document as it should be, but why is this
different from before?

Why is the meta tag ignored by the browser?

Any help appreciated. I have search 3 hours for an answer but only found
others with a similar question.

Thanks in advance!

Steve.


---------------------------------------------------------------------
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] Russian page not displayed properly in Apache 2.0

Posted by suomi <ap...@ayni.com>.
mime types?

suomi

Steve Lawrence wrote:

>Recently I moved a client from an Apache 1.3 server to an Apache 2.0
>server. The client has a few pages which are encoded in windows-1251,
>the Russian character set. On the old server, and 2 others servers we
>have tried, you may load up the page and view the Russian text as it
>should be. On the new server, you see garbage where the Russian should
>be unless you specifically tell the browser to use the Russian character
>set.
>
>We think this is an apache issue, not a browser issue or a page issue.
>
>I have the following lines in my httpd.conf file (the default
>installation settings)
>
>AddLanguage ru .ru
>AddDefaultCharset ISO-8859-1
>LanguagePriority en fr de es it da nl et el ja kr no pl pt pt-br ru ltz
>ca sv tw
>AddCharset WINDOWS-1251 .cp-1251   .win-1251
>
>The file itself has the meta tag at the top:
>
><META http-equiv="content-type" content="text/html;
>charset=windows-1251">
>
>I have experimented with renaming the file with a .ru.win-1251 extension
>and I did get to view the document as it should be, but why is this
>different from before?
>
>Why is the meta tag ignored by the browser?
>
>Any help appreciated. I have search 3 hours for an answer but only found
>others with a similar question.
>
>Thanks in advance!
>
>Steve.
>
>
>---------------------------------------------------------------------
>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] Russian page not displayed properly in Apache 2.0

Posted by Michael <mi...@michael.lai.name>.
Well, so much for my brilliant idea.  The charset with the anchor tag
doesn't work either.  Never mind.

> This is more of curious musing than a technical question.
>
> I agree that Apache that can't control which browser does what but it does
> bring an interesting point.  Doesn't the programmers of the browsers follow
> the HTML 4.01 standard set forth by W3C?  I had a look at W3C and it does
> specify that the charset can be controlled by the meta tag.  I guess the
> powers that be at M$ decided to have their own standards.
>
> By the way, in case anyone is interested, I noticed that the charset can
> also be specified using the <A> anchor.  I didn't know this before.  It is
> useful if a webpage is comprised mostly of english but has a small amount of
> content in another language...similar to what I have.  I am going to give it
> a try tonight to see if this method works.
>
> Michael.

---------------------------------------------------------------------
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] Russian page not displayed properly in Apache 2.0

Posted by Michael <mi...@michael.lai.name>.
This is more of curious musing than a technical question.

I agree that Apache that can't control which browser does what but it does
bring an interesting point.  Doesn't the programmers of the browsers follow
the HTML 4.01 standard set forth by W3C?  I had a look at W3C and it does
specify that the charset can be controlled by the meta tag.  I guess the
powers that be at M$ decided to have their own standards.

By the way, in case anyone is interested, I noticed that the charset can
also be specified using the <A> anchor.  I didn't know this before.  It is
useful if a webpage is comprised mostly of english but has a small amount of
content in another language...similar to what I have.  I am going to give it
a try tonight to see if this method works.

Michael.

>> Why is the meta tag ignored by the browser?
>
> Ask those who wrote the browser. Apache can't decide wether the
> browser should use the meta tag or the HTTP protocol header.
>
> Regards
> /Jonas
> --
> Jonas Eckerman, jonas_lists@frukt.org
> http://www.fsdb.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] Russian page not displayed properly in Apache 2.0

Posted by Jonas Eckerman <jo...@frukt.org>.
On Wed, 22 Oct 2003 11:55:08 -0600, Steve Lawrence wrote:

> Recently I moved a client from an Apache 1.3 server to an Apache
> 2.0 server. The client has a few pages which are encoded in 
[...]
> AddDefaultCharset ISO-8859-1
[...]
> <META http-equiv="content-type" content="text/html;
> charset=windows-1251">

I suggest you read the articles with subject "big5 charset not 
displayed automatically" in this list. They discuss the exact same 
problem you have.

> Why is the meta tag ignored by the browser?

Ask those who wrote the browser. Apache can't decide wether the 
browser should use the meta tag or the HTTP protocol header.

Regards
/Jonas
-- 
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.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