Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:17

Problem with special characters in menu


Poster: dubbelepunt
Dated: Saturday January 21 2006 - 11:14:09 GMT

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:
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 :)
-


Poster: Ruth
Dated: Saturday January 21 2006 - 14:59:47 GMT

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


Poster: dubbelepunt
Dated: Sunday January 22 2006 - 9:51:20 GMT

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 :)


Poster: dubbelepunt
Dated: Wednesday January 25 2006 - 11:37:03 GMT

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!