When your website means business.

wp-config | Type: OtherEnd of Text characters, u0003, aka ‘mystery characters’

Apparently, there can be a mismatch of encoding after a db update by your webhost, and it can result in odd characters appearing in text. This might fix it.

Comment out a couple of standard lines on wp-config.php like so:

//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');

NOTE: the solution above creates more problems than it fixes (if it fixes). Often this character was introduced by copying text from Photoshop or a PDF. The best thing to do is delete the text and retype.

Possible fix (functions.php):

//remove 0003 character
function removeWeirdCharacters($content) {
    $content = preg_replace('/\u0003/', '', $content);
    return $content;
} 

Reference Links

Menu
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Cookies Notice