Sometimes after a database conversion (e.g. from MySQL to MariaDB) or due to encoding issues a situation might arise when WordPress is showing weird characters. A quick way of remedying the situation would involve examining the pages to discover a pattern (what characters are being substituted, in the example below the apostrophe was replaced by รข€™ ) then running an queries against the database to reverse the effect. Here's a quick example (common tables that store content): UPDATE wp_posts SET post_content = REPLACE (post_content, 'ร' , '' ) UPDATE wp_posts SET post_content = REPLACE (post_content, 'รข€™' , "'" ) UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'ร' , '' ) UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'รข€™' , "'" ) Please, keep in mind that to permanently resolve the issue you would need to get to the root of the p
Comments
Post a Comment