Wednesday, May 23, 2007

Agrave bug?

One of my projects involves translation of pages and I have built a general framework that not only translates, but also tries to preserve the capitalization of text. For example, for English to Italian translations, MORNING would be translated into MATTINA and morning into mattina. But I've stumbled into an issue with ACTIVITY.

You see, the Italian for activity is attività, which would be translated into the UTF8 of html to attivitÀ or attività. Well, then how would one translate ACTIVITY? Maybe ATTIVITÀ? No! Because, apparently, both IE and FireFox (and possibly any other browser) don't count à unless it is in lowercase, even if, as far as I know, HTML should be case insensitive.

So watch out! Use the numbering system, it is more compatible.