News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] High Prio - Latest SVN with J!1.5RC3 HBCS Handling Error!

Started by jkl-web, October 07, 2007, 00:27:36 AM

Previous topic - Next topic

jkl-web

Joomla 1.5 RC3 and Latest VirtuMart SVN build gave me this error:

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/jklweb/public_html/administrator/components/com_virtuemart/classes/ps_main.php on line 660

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/jklweb/public_html/administrator/components/com_virtuemart/classes/ps_main.php on line 660

Tordne

Looks like it is fixed in your link.  Can you advise how you resolved the error?

Thanks.

jkl-web

Yeah, I decided to look at the code and fix it my self since i got no answers on any of my posts. Basically it is a rather easy fix:

In ps_main.php where it says:
function vmHtmlEntityDecode($string, $quote_style = ENT_COMPAT, $charset = null) {

   if( function_exists('html_entity_decode')) {

      return html_entity_decode( $string, $quote_style, $charset );

replace that with:

function vmHtmlEntityDecode($string, $quote_style = ENT_COMPAT, $charset = null) {

   if( function_exists('html_entity_decode')) {

      return html_entity_decode( $string, $quote_style, $charset = 'ISO-8859-15' );

aravot

Without making any changes it works for me in Joomla 1.5 r9217 and VirtueMart 1.1 r998.

When do you get this error? Are you using a different language?

mauri

Joomla! 1.0.13 and VM SVN 1.1.0 'beta2' revision 1144
I get Warning: cannot yet handle MBCS in html_entity_decode()! in /xxx/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php on line 565

And I change that line
$source = html_entity_decode($source, ENT_QUOTES, 'UTF-8');
to:
$source = html_entity_decode($source, ENT_QUOTES, 'ISO-8859-15');

Edit:
And I can use ISO-8859-1 too.

Edit2:
It´s  PHP 4.x.x  error.

VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11


mauri

Thanks aravot
That clears all what I inspect.
Sadly, that kind error comes from PHP.
Happy that I use Joomla! 1.0.13 and my site uses iso-xxx, and not utf-8.
Sendin mail to my host, to update PHP to 5 :-).-)
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11