cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect content of tooltip containing accents

lgr
Champ in-the-making
Champ in-the-making
Hi,

When using a localized version of Alfresco, tooltips ("TITLE") in details editing are not correctly displayed.

An example :
webclient_fr_FR.properties contains : "custom_view=Vue Personnalisée"

the tooltip shown in "details edition" contains "Vue Personnalisée".

this string is well displayed when on html page, but not well displayed when on a tooltip.

I use firefox 2.0 under Windows. Is it only a browser bug, or is there something to do with messages transformation ?

I've checked that a tooltip containing a "é" (character "é") instead of "é" works well.

Laurent.
6 REPLIES 6

gavinc
Champ in-the-making
Champ in-the-making
Try looking at the HTML source for the page, does the source have the correct characters in it or does the tooltip (title attribute) have the corrupted version you are seeing?

If the source code looks OK then it sounds like a browser bug to me.

lgr
Champ in-the-making
Champ in-the-making
yes, the two codes match, but i'm not sure that title elements can contain such characters. In other words, i think that using é is a better standard that using #233.

Note it does not work under firefox and IE.

When checking the rfcs, it seems that you're right, it should work. But it i've seen such a behaviour since a long time, that title does not displays exactly the same way than the html page.

So i don't really know what to do.
You can use symbolical accents (eacute), or use the numerical accents (#233), but just be aware that the second solution does not display correctly on the two most used browsers Smiley Happy.

Laurent.

gavinc
Champ in-the-making
Champ in-the-making
If the properties file contains custom_view=Vue Personnalisée and the é ends up in the HTML as #233 I can only imagine it's the Java encoding process that is transforming the character to the numeric code.

Have you tried replacing the character in the properties file with é and seeing if that works?

lgr
Champ in-the-making
Champ in-the-making
Well, it doesn't work better Smiley Happy
Java transform it into "Vue Personnalisée", so it is displayed like that in the tooltip and "Vue Personnalisée" in the HTML.

Laurent.

gavinc
Champ in-the-making
Champ in-the-making
OK. I think the best thing is to raise this as an issue in JIRA and we'll investigate and you can then track the progress too.

lgr
Champ in-the-making
Champ in-the-making
ok. I've created one :
http://issues.alfresco.com/browse/AWC-1041

Laurent.