Rate this article

MX CSS Menu and UTF-8

Rating: 5.0/5 (2 votes cast)

UTF-8 (2 Byte characters) does not display properly in CSS Menu.

Edit the following file:

includes/cssmenus2/MX_Menu2.inc.php

Change line 347

                $this->DBItems[$fk][$order]['name'] = htmlentities(stripslashes(trim($rs->Fields($this->menuNameField))));

to

                $this->DBItems[$fk][$order]['name'] = html_entity_decode(stripslashes(trim($rs->Fields($this->menuNameField))));

and line 362

                $title = htmlentities(stripslashes(trim($rs->Fields($this->menuTitleField))));

to

                $title = html_entity_decode(stripslashes(trim($rs->Fields($this->menuTitleField))));

Adobe

ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase
XMS Systems

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company