Jump to content

language problem - error in "tools.php" file


Recommended Posts

Hey guys!
I have the following problem:
My shop is working with both English and Bulgarian languages. In English I do not have any problems up to now, but in Bulgarian when I choose a product, add it to the cart and click on either "Cart" or "Check out" buttons the following error message appears in my browser window:

PHP Warning: htmlentities() [function.htmlentities]: Invalid multibyte sequence in argument in .....\httpdocs\classes\Tools.php on line 338
PHP Warning: htmlentities() [function.htmlentities]: Invalid multibyte sequence in argument in .....\httpdocs\classes\Tools.php on line 338

I do not know what does it mean, but when I check in "Tools.php" file this is the "problem" section:

333
334 static public function htmlentitiesUTF8($string, $type = ENT_QUOTES)
335 {
336 if (is_array($string))
337 return array_map(array('Tools', 'htmlentitiesUTF8'), $string);
338 return htmlentities($string, $type, 'utf-8');
339 }

Can anyone help me by advising what should I change in order to fix this error? Thanks in advance for the effort!

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...