htmlentities() multibyte warning

Project:RUcore API's
Version:7.2
Component:Get API
Category:bug report
Priority:normal
Assigned:chadmills
Status:closed
Description

When using the washString function in xmltools.php the htmlentities function is throwing warnings. The warnings are caused when handling multibyte characters and seem harmless in that the return information is correct.

[09-Apr-2013 12:01:12] PHP Warning: htmlentities() [<a href='function.htmlentities'>function.htmlentities</a>]: Invalid multibyte sequence in argument in /home/httpd/html/rucore/api/get/lib/function.xml.tools.php on line 56

Explore addressing, maybe starting with this post:
<a href="http://stackoverflow.com/questions/2327219/htmlentities-invalid-multibyte-sequence-error" title="http://stackoverflow.com/questions/2327219/htmlentities-invalid-multibyte-sequence-error">http://stackoverflow.com/questions/2327219/htmlentities-invalid-multibyt...</a>

Look other places where this function is used.

Comments

#1

Status:active» test

Added the following flags to the function call mentioned in the WARNING.

ENT_COMPAT | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_XHTML

#2

Status:test» fixed

I haven't see this error in the logs after a few weeks of testing.

#3

Status:fixed» closed

Back to top