• hi
    i was facing issue on wordpress my post was showing some weird characters between the post , so i changed the wp-config file as commenting the utf8 line.
    which solved my problem but other type of special characters are now displayed on my posts.
    https://we.tl/t-8lpKjbLOsi

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @kunalkothari1810
    You appear to have an issue with character encoding on your WordPress site. This issue can be caused by a change in the utf8 line in the wp-config.php file, which controls many important settings for your WordPress site. To fix this, you should try restoring the utf8 line in the wp-config.php file and make sure that it is set to the correct value define(DB_CHARSET, utf8mb4);.

    If this does not resolve the issue, you may need to check your database’s character encoding and ensure that it is set to UTF-8.

    Thread Starter kunalkothari1810

    (@kunalkothari1810)

    hi it did solved my issues shared in screenshot but now i am back with old character issues
    https://we.tl/t-ln6Xc1C0Pd

    https://www.nourishdoc.com/member/how-i-recovered-from-breast-cancer-using-natural-therapies

    earlier i changed utf8 to utf-8 which solved this issue

    You are still experiencing issues with special characters being displayed incorrectly on your WordPress site.

    There are a few potential causes for this issue:

    1. The wp-config.php file is not set to the correct character encoding. As I mentioned earlier, the correct value for the utf8 line should be define('DB_CHARSET', 'utf8mb4');.
    2. The character encoding of your database is not set to UTF-8. You can check the collation of your database tables to ensure they are set to UTF-8.
    3. There may be issues with the theme or plugins you use on your site. These issues could cause problems with the way that special characters are displayed.
    4. There may be issues with how the content was created or imported into WordPress. If the content was created or imported using a different character encoding, it might cause issues with how special characters are displayed.

    To troubleshoot this issue, you can try the following steps:

    1. Make sure that the wp-config.php file is set to the correct character encoding.
    2. Check the collation of your database tables to ensure they are set to UTF-8.
    3. Deactivate all your plugins and switch to a default WordPress theme to see if the issue persists. If the issue goes away when you do this, it is likely caused by a plugin or theme. You can try reactivating your plugins and switching back to your theme one at a time to identify the cause of the issue.
    4. Check the character encoding of your content and ensure it is set to UTF-8. You can open the content in a text editor and check the character encoding. If the character encoding is not set to UTF-8, you can try saving the content as UTF-8 and re-importing it into WordPress.

    Give it a try, and let me know how that goes! ??

    Hi. Maybe the issue is not related to the database. Check whether the html defines an encoding in the header:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    

    Or

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" 
          content="text/html; charset=utf-8">
    

    Also check the http header content-type from the http response of the webserver, just in case it defines a specific encoding. For example,

    Content-Type: text/html; charset=utf-8

    The HTTP header has a higher precedence than the in-document meta declarations,

    Thread Starter kunalkothari1810

    (@kunalkothari1810)

    hi @faisalahammad i already tried making that wpconfig line change but it didnt worked good for me

    and @miguelmartinezlopez i checked the website code by going into page source it is charset= utf-8 only
    https://we.tl/t-PQxkxJCJJV

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Special Characters coming on my post’ is closed to new replies.