Well, I just recently received this warning message on one of my administrators ' WordPress sites. This error occurred after the latest version of the WP website was updated.
0
1
Warning: htmlspecialchars(): charset UTF–7‘ not supported, assuming utf–8 in 2./home/bookis/public_html/wp–includes/formatting.php on line 3058
‘&’ (ampersand) becomes ‘&’
0
1
Warning: htmlspecialchars(): charset UTF–7‘ not supported, assuming utf–8 in 2./home/bookis/public_html/wp–includes/formatting.php on line 3058
Problem
htmlspecialchars() is a PHP String function which converts special characters to HTML entities.So once a special character encounters it converts it to HTML entities.for example:
‘&’ (ampersand) becomes ‘&’
WordPress default charset it utf-8. During updating WordPress or theme etc sometimes the charset changes to UTF-7.
You Can see the changed charset in WP admin Dashboard in Settings => Reading.
You Can see the changed charset in WP admin Dashboard in Settings => Reading.