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;");
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