Another topic about special characters...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tamagotchi
Beginner
Beginner
Posts: 6
Joined: Mon Sep 13, 2004 8:48 am

Another topic about special characters...

Post by tamagotchi »

Hello,

I know there are many other topics about special characters, but I could not find what I'm searching for.

I generate my menu from a database, with french labels including special characters (é, è, î...)

I found the solution for menus and submenus texts (I use server.htmlencode in ASP). It returns me "Man&# 232ge" for "Manège", everything works ok, except for the status.

my code is :

Code: Select all

aI("text=>La Crini&# 232;re;status=Acc&# 233;dez au site du magasin &# 233;questre "La Crini&# 232;re", &# 224; Corsier.;url=content.aspx?id=8");
(I put a space after &# because the forum is transforming it in é, è... !)

in the menu, it shows me as "La Crinière" (perfect), but in the status bar (IE6), I can see "Acc&# 233dez au site...", not "Accédez au site..."
How can I do ?

I know I did another way in an old website which used the menu. The menu showed special characters é, è without putting server.htmlEncode. But I can't find how I did it... maybe a parameter ?

Thank you.

[EDIT - 27.10.2005] Still no answer ???
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

have you tried putting the actual character (not the HTML encoded one) inside the status text.

My guess is that status does not require any special characters and will deliver its content based on operating system locale.

Hope this helps,
Andy
tamagotchi
Beginner
Beginner
Posts: 6
Joined: Mon Sep 13, 2004 8:48 am

Post by tamagotchi »

Seems to work... I had a javascript Error about a quote I had in one of my sub's status text, but I corrected it.

It's great to know that for text property, we have to htmlEncode, not for status.

I should have tried it before.....

Thanks.
Post Reply