• Need to change from htmlspecialchars($[.]) to htmlspecialchars($[.], $flags=NULL, $encoding=’UTF-8′). Otherwise, there are constant debug warnings in the plugins dashboard:

    htmlspecialchars(): charset not supported, assuming utf-8

Viewing 2 replies - 1 through 2 (of 2 total)
  • Curious, can you try adding the following to your theme’s functions.php file?

    The aim is to temporarily modify your session’s charset so any calls to htmlspecialchars(..) will use utf-8 as its default.

    
    function my_charset() {
    	ini_set( 'default_charset', 'UTF-8' );
    }
    add_action( 'init', 'my_charset' );
    Plugin Contributor gidomanders

    (@gidomanders)

    Your PHP is misconfigured. The default charset is set to a non-existing value. Half of the WordPress plugins will cause those warnings. You should review your php.ini and correct the default_charset value there. If you don’t know how to fix you php.ini, you could also add ini_set( 'default_charset', 'UTF-8' ); to the top of your wp-config.php file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘need to update htmlspecialchars calls in util_ui.php’ is closed to new replies.