• I’ve recently moved my sites over to a new server. One website is fine the other has chinese characters showing such as in place of a pound sign (£) or an accented e (é). They also appear in random places throughout the posts where there are spaces.

    They were also initially showing with the curly quotation marks however I have fixed this with the search & replace plugin.

    However, this will not work for the other characters as they appear ok in the database.

    Here is the website it appears on: https://www.greenbanksportsacademy.co.uk/
    (the news section shows most issues)

    I’ve done searches but have not managed to find anything that can fix it.

    Any help is appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dawnted

    (@dawnted)

    UPDATE: I have just checked the encoding through page info in Firefox and the encoding is set to ‘gbk’ and not UTF-8. Anyone know how/where I can change this?

    When you view your page source you can see:

    <p><h4 style="text-align: center;"><span style="color: #ffffff;">Monday 6 鈥? 7pm</span><br/>
    <span style="color: #ffffff;"> Tuesday & Thursday <br/>12 鈥? 1pm & 5 鈥? 6pm</span><br/>
    <span style="color: #ffffff;"> Wednesday 4 鈥? 5pm*</span><br/>
    <span style="color: #ffffff;"> Friday 7 鈥? 8pm</span></h4><br/><br/>

    Re-enter the information, BUT this time before you paste your text in, drop it in something like notepad first. This will remove formatting before it goes into your content. I call this washing the text.

    I also recommend this when doing posts and pages to have clean text go on your pages and format from within WorPpress,

    Your page source inside your site shows:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    Unless something is set different in the header, I am not sure why it is saying that.

    Probably not much help other than to help point out the source file.

    Not sure, Dawnted, is something particular mentioned in your blog’s wp-config.php file, along the lines of define(‘DB_CHARSET’,’something”) ?
    (source https://codex.www.ads-software.com/Editing_wp-config.php#Database_character_set )

    Thread Starter dawnted

    (@dawnted)

    Thanks for all your replies. The problem turned out to be down to the site being hacked and some spam ad copy being added before the Doctype hence it wasn’t reading it properly. I think this was due to permissions on a form plugin files not being set correctly when I had recently moved hosts.

    Once again, many thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Chinese characters showing on pages and posts’ is closed to new replies.