Click here to get back home

Page wrongly displays in Spanish only once

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Page wrongly displays in Spanish only once phillip.s.powell@gmail.com 12-18-2007
Posted by phillip.s.powell@gmail.com on December 18, 2007, 1:13 pm
Please log in for more thread options
I have a case whereby a webpage will, for some bizarre reason,
display
in Spanish even though the end-user is insisting that they are not
changing their IE language settings; when they refresh the page it
reverts back to English and stays that way.

I am tasked with investigating as to why this has ever occurred as it
seems to occur with one particular JSP page that is reading initially
from


String acceptedLang = (String) request.getHeader("accept-language");


Has anyone out there ever encountered anything like this before?
Please let me know.


Thanks
Phil



Posted by Jukka K. Korpela on December 18, 2007, 5:11 pm
Please log in for more thread options
Scripsit phillip.s.powell@gmail.com:

> I have a case whereby a webpage will, for some bizarre reason,
> display
> in Spanish even though the end-user is insisting that they are not
> changing their IE language settings;

There's little of getting a useful answer unless you reveal the URL. It
might not be _sufficient_, of course. And how do you expect the server
to send different language versions to different browsers?

> I am tasked with investigating as to why this has ever occurred as it
> seems to occur with one particular JSP page that is reading initially
> from
>
> String acceptedLang = (String) request.getHeader("accept-language");

That's a start, but what then? What does the browser actually send, and
how will the server-side code proceed then? For example, naively
assuming that the header contains just a two-letter language code will
lead to confusion.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by phillip.s.powell@gmail.com on February 1, 2008, 2:39 pm
Please log in for more thread options
We managed to find the workaround for this by enforcing client and
server-side cache flushing and the problem simply went away.

wrote:
> Scripsit phillip.s.pow...@gmail.com:
>
> > I have a case whereby a webpage will, for some bizarre reason,
> > display
> > in Spanish even though the end-user is insisting that they are not
> > changing their IE language settings;
>
> There's little of getting a useful answer unless you reveal the URL. It
> might not be _sufficient_, of course. And how do you expect the server
> to send different language versions to different browsers?
>
> > I am tasked with investigating as to why this has ever occurred as it
> > seems to occur with one particular JSP page that is reading initially
> > from
>
> > String acceptedLang =3D (String) request.getHeader("accept-language");
>
> That's a start, but what then? What does the browser actually send, and
> how will the server-side code proceed then? For example, naively
> assuming that the header contains just a two-letter language code will
> lead to confusion.
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/


Posted by Jukka K. Korpela on February 1, 2008, 3:17 pm
Please log in for more thread options
Scripsit phillip.s.powell@gmail.com:

> We managed to find the workaround for this by enforcing client and
> server-side cache flushing and the problem simply went away.

Well, it has nothing to do with HTML, does it?

And it's a symptom of wrong design and keeps some bugs hiding somewhere.
With adequate HTTP headers, caches can deal with language versions.
(Hint: the Vary header.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Similar ThreadsPosted
Simple page displays fine in Firefox, but not on IE March 14, 2006, 11:53 am
Searching perl script which calls web page and forwards to me / displays with adjusted URLs January 4, 2005, 9:40 pm
David Beckham Caught With Spanish Girl October 9, 2004, 12:40 pm
web site to translate spanish characters into corresponding html codes? April 14, 2008, 10:16 pm
html email displays as code June 27, 2007, 4:19 pm
Blog box div displays incorrectly only in IE, header bar is short, besides that, what do you think? October 26, 2006, 5:30 pm
Basic image alignment using tables displays differently in browsers September 2, 2006, 5:37 pm
MS Cleartype Tuner not so good on older 800x600 displays (older VGA, pre-Card to Monitor telemetry)... December 3, 2006, 4:58 am
Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content February 7, 2007, 5:40 pm
Activating parent page link from 'child page' - revised June 3, 2005, 11:30 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap