htmlspecialchars in search When I'm searching my site, I get this error:


  Warning: htmlspecialchars(): Invalid multibyte sequence in argument in check_plain() (line 1476 of /var/www/includes/bootstrap.inc).


What does it mean and how can I correct it?

EDIT:
The problem disappeared after migrating to webhosting server, so the problem should be something in settings in my local computer.
Try adding some instrumentation by replacing the check_plain function with this version:

function check_plain($text) {
  $plain = htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
  if (empty($plain) &amp;&amp; !empty($text)) {
    dpm($text);
    ddebug_backtrace();
  }
}


You will need to have the devel module enabled.  The next time the error is triggered, the offending text will be displayed along with a backtrace that shows what function triggered the error.  With that info, you can search your code and database for the offending text and remove it.