Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • hinatasnape Friend
    #149290

    Hello,

    I have a problem with this template :

    I have this message

    Warning: cannot yet handle MBCS in html_entity_decode()! in /homez.170/thetrues/www/libraries/joomla/application/pathway.php on line 209

    You can see in my siteweb :

    http://thetruestoryofseverussnape.com/index.php

    And click on the title of the first news

    Thanks for your help

    lamvt Friend
    #335311

    Download lastest Joomla 1.5.15 and Unzip it
    Use FTP upoad (overwrite) folder /libraries/ to your host.
    Thanks

    hinatasnape Friend
    #335314

    But I have install this template directly with “Template/Quickstart”

    lamvt Friend
    #335317

    http://docs.joomla.org/Why_do_I_get_the_message_%22Warning:_cannot_yet_handle_MBCS_in_html_entity_decode%22

    check it
    Why do I get the message “Warning: cannot yet handle MBCS in html entity decode”
    From Joomla! Documentation
    Jump to: navigation, search

    This message is caused by a bug in PHP version 4 and a change made for Joomla! version 1.5.15. For version 1.5.15, we fixed tracker issue 18493 to correct a problem where UTF-8 (non-ASCII) characters did not display correctly in the breadcrumbs module. However, this bug fix used a feature that doesn’t work correctly in some older versions of PHP.

    To correct this problem, upgrade your server to use PHP version 5. If that is not possible, you can make a change to line 209 of the file libraries/joomla/application/pathway.php. In version 1.5.15, this line is as follows:


    $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');

    To fix this problem on a site running PHP 4.x, change line 209 to:

    $item->name = html_entity_decode($name);

    If you like, you can make the following code change instead of the one above. This will allow the function to correctly display UTF-8 if the site is running PHP 5.x. Replace line 209 with the following lines:

    if((version_compare( phpversion(), '5.0' ) < 0)) {
    $item->name = html_entity_decode($name);
    } else {
    $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
    }

    So the entire function will now be as follows:

    function _makeItem($name, $link)
    {
    $item = new stdClass();
    if((version_compare( phpversion(), '5.0' ) < 0)) {
    $item->name = html_entity_decode($name);
    } else {
    $item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');
    }
    $item->link = $link;
    return $item;
    }

    hinatasnape Friend
    #335320

    Thanks so much !!!!!

    Its good now 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  hinatasnape 14 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum