httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt farey <matt.fa...@gmail.com>
Subject Re: [users@httpd] Russian characters
Date Tue, 13 Mar 2007 03:05:32 GMT


Thomas Blanchin wrote:
> Yes, sure, here it is.
>
> here is a working one :
> http://www01.123ticket.com/public/index_d.php?lang=ru
>
> and a non-working one :
> http://www10.123ticket.com/public/index_d.php?lang=ru
>
> The text is contained in static files (part of the nfs share)
> All servers are running RHEL 4, same release.
> The problem happens on both x86_64 and i686 machines, so it's not arch
> dependant.
>
>


Trial and error couldnt reveal the encoding used in the strings within
the page. It seems that the application logic could be subtly different.
Although trying to encode the correct utf-8 russian from utf-8 to
windows-1251 cyrillic did lead to the other alert string, ie from
alert("Пожалуйста, введите свой логин / пароль");
to
alert(",    / ");

I did notice the content-type meta tag is set wrongly - not that it
matters just an observation!

sorry not to be of any help, my guess is that its in the application
layer, unless as I say there is some dodgy stuff going on the way out,
for instance the tracert for your two servers reveals a consistent
difference in the route out. Have you tried saving the page on your
server to check theres nothing going going transit. I mean I know this
is a far reach.
01
so-4-0-0-dcr1.lnd.cw.net [195.2.9.14]
so-0-0-0-dcr2.par.cw.net [195.2.10.137]
10
so-7-0-0-dcr1.esx.cw.net [195.2.9.146]
so-2-0-0-dcr1.mad.cw.net [195.2.9.121]

> matt farey wrote:
> > Thomas Blanchin wrote:
> >> Hi all,
> >>
> >> I have a problem getting some httpd servers displaying russians
> >> characters.
> >> I have different machines serving the same content (mounted via nfs).
> >> - All servers run httpd 2.0.52 and php 4.4.5.
> >> - The httpd and php configuration is synced over all servers.
> >> Despite that, some of my servers display strange characters "?" and
> >> others...,
> >> instead of cyrilic ones.
> >>
> >> The HTTP header returned from a working and non-working server is the
> >> same :
> >>   HTTP/1.1 200 OK
> >>   Date: Mon, 12 Mar 2007 22:55:40 GMT
> >>   Server: Apache/2.0.52 (Red Hat)
> >>   Set-Cookie: 123Tlanguage=ru_RU
> >>   Connection: close
> >>   Content-Type: text/html; charset=utf-8
> >>
> >> So : UTF-8...
> >> But if I wget the page, I can see for instance :
> >>
> >> Correct chars :
> >> alert("Ð~_ожалÑ~CйÑ~AÑ~Bа, введиÑ~Bе
Ñ~Aвой
> >> логинпа~L");
> >>
> >> Weird chars :
> >> alert("¿ÞÖÐÛãÙáâÐ, ÒÒÕÔØâÕ áÒÞÙ ÛÞÓØÝ / ßÐàÞÛì");
> >>
> >> I'm not a russian speaker, but I can tell that the encoding is not the
> >> same.
> >>
> >> I have also checked phpinfo() which looks quite similar on non/working
> >> server, and
> >> the $LANG env variable is "en_US.UTF-8" on all servers.
> > quite similar? I thought the setup was synched across the different
> servers.
>
> >> I don't know where to look precisely (and sorry if this is more php
> >> than http).
> >> Thank you for your help !
> >>
> > Are we allowed to look at the output from these servers ourselves can
> > you point us to 2 URLs for instance. I only ask this because telling us
> > that everything is the same but isn't, kind of leaves no other choice. I
> > notice there is no last-modified or Etag, where is php getting its data,
> > is it a Database which might have different encoding on the different
> > machines? Do you have different OS for each machine perhaps one which is
> > older? Does any of your content get proxied?
>
> > ---------------------------------------------------------------------
> > 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



-- 
Matthew Farey


---------------------------------------------------------------------
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


Mime
View raw message