Monday, September 19, 2005

IE 5.2 over Mac OS bug with Localized Strings

While testing our application over multiple browsers/OS combination we came across a pretty odd problem. IE over Mac OS wouldn't show all the items in the drop down list controls. The html markup was correct, but the drop down lists would show empty spaces when the text string had accented characters, or characters that are not in the English alphabet.

The solution? Unknown, Microsoft is no longer developing IE browsers for Mac Operating Systems, is also no longer giving support for IE over Mac. What we are doing is detecting the browser and OS combination and rendering a disclaimer note on the page.

This post is just a curious note on a so far undocumented bug.


Here's a very useful browser detection script taken from QuirksMode.org

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
browser = "Konqueror";
OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
browser = "Netscape Navigator"
version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac"
else if (checkIt('win')) OS = "Windows"
else OS = "an unknown operating system";
}

function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}

1 Comments:

Blogger Lizet Pena de Sola said...

I got a reply from Dr.International on the IE over Mac OS issue, here I copy and paste the recommendation they gave me.

"It's an interesting issue. Did you try using a different font for the drop-downs? For example, the Macintosh Character Set (US Roman) code page is supported by the Tahoma or Verdana. Not sure if this would solve the problem or not.

Let me know either way and I'll do my best to help."

I'm not sure we are going to change the font for those drop downs, it would break the design. I'll make some tests on a personal website to see if this really works.


PG

9:15 AM  

Post a Comment

<< Home