Problem with special characters in menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dubbelepunt
Advanced
Advanced
Posts: 10
Joined: Mon Aug 16, 2004 2:00 pm

Problem with special characters in menu

Post by dubbelepunt »

Hi,

I have a strange problem with displaying special characters like ôë etc.
The weird thing is that is works fine on my local computer, but it messes up on our server, and on my other local computer (Apple) :?

The menu code is exactly the same on both my computers and server, and shows all text just fine:

Code: Select all

aI("showmenu=main_21;text=Bourgogne;url=index.php?pid=21;");
aI("showmenu=main_22;text=Rhône;url=index.php?pid=22;");
aI("showmenu=main_23;text=Bordeaux;url=index.php?pid=23;");
aI("showmenu=main_24;text=Oostenrijk;url=index.php?pid=24;");
aI("showmenu=main_25;text=Italië;url=index.php?pid=25;");
aI("showmenu=main_26;text=Spanje;url=index.php?pid=26;");
the problem obviously is with Rhône and Italië, and exists on all browser. The character encoding of the page is UTF-8.

Local configuration:
- Windows 2000
- PHP 4.3.9

Other local configuration:
- Apple MacOS 10.4.4
- PHP 5.0.4

Server configuration:
- Windows 2003 server
- PHP 4.3.11

Any help would be appreciated :)
-
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I don't know if this is an issue for you, but if you look up about utf on w3c they tell you that just putting that encoding on the page is not sufficient, the data has to also be 'saved' as utf format. It talks about building files from scripts and databases and making sure that those files get converted and that the correct parameters are set in the scripting.

Someone else had such a problem and that was the reason. While I was testing it I found that leaving that out of the page, which had not been saved in utf format, the special characters worked fine.

Ruth
dubbelepunt
Advanced
Advanced
Posts: 10
Joined: Mon Aug 16, 2004 2:00 pm

Post by dubbelepunt »

thanks for your reply, I'll have a look at it :)

I don't expect that is the problem though, because locally everything is working fine, with exact the same database and files... I'll keep you updated :)
dubbelepunt
Advanced
Advanced
Posts: 10
Joined: Mon Aug 16, 2004 2:00 pm

Post by dubbelepunt »

I checked further and discovered that something went wrong during the import of the database. After saving the items again in the online database, the problem was solved. No Milonic problem after all!

Thanks for the help though!
Post Reply