PHP Warning HTML Special Characters
-
Any ideas how to fix the following error?
23-Nov-2014 10:04:05 UTC] PHP Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in /home/boardsc/public_html/wp-includes/formatting.php on line 3205
This is a regular error message.
Here are details that may be pertinent:
- From line 3204 WP-INCLUDES/FORMATTING.PHP
function esc_textarea( $text ) {
$safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( ‘blog_charset’ ) );
/**
* Filter a string cleaned and escaped for output in a textarea element.
*
* @since 3.1.0
*
* @param string $safe_text The text after it has been escaped.
* @param string $text The text prior to being escaped.
*/
return apply_filters( ‘esc_textarea’, $safe_text, $text );
}- SITE (www.4boards.co.uk) PHP.INI code for character set
PHP.INI
; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
;
; PHP’s built-in default is text/html
default_mimetype = “text/html”
;default_charset = “iso-8859-1”-
Character set setting for database in WP-CONFIG.PHP
/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);
The topic ‘PHP Warning HTML Special Characters’ is closed to new replies.