php - htmlspecialchars(): Invalid multibyte sequence in argument -


I am getting this error in my local site.

  WARNING (2): htmlspecialchars (): [/var/www/html/cake/basics.php, line 207] [/ code>  

in logic Does anyone know what is the problem or what should be the invalid multibyte sequence?

Thank you.

Be sure to specify encoding to UTF-8 if your files are encoded such as: < Pre> htmlspecialchars ($ str, ENT_COMPAT, 'UTF-8'); The default charset for

htmlspecialchars is ISO-8859-1 (as the PHP v5.4 default charset was changed to 'UTF-8'), Which can explain why things get disturbed when it meets multibyte characters.


Comments