We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 967
    • 8 Posts
    Hi,

    Recently transfered our MODX Revolution 2.0.3.pl site to a new hosting. In the original site, apostrophes and other characters show up just fine, however in the new site, they are being replaced by a character is the form of a square.

    Please help me figure this out, what needs to be done please?

    Thank you,

    Alex C.
    • Sounds like your charset is messed up. Can you post what character set your site is using?
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
        • 967
        • 8 Posts
        On MySQL both sites have: MySQL charset: UTF-8 Unicode (utf8)
          • 3749
          • 24,544 Posts
          Check the tables and the individual fields to make sure they are UTF-8 as well. And check the character set in core/config/config.inc.php. It definitely sounds like a character set issue.

          It’s possible that this would help: http://bobsguides.com/convert-db-utf8.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 967
            • 8 Posts
            I set the charset to utf-8: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />, and it works now. It was set to something else before.

            The one thing I have now is why would it work for one site and not the other? But that’s more of a curiosity, it is fine now which is the really important thing.

            Thanks for your help.
            • I suspect it’s a case of a slightly different server configuration, in the past it was fine, just needed to be tweaked a touch smiley
                Patrick | Server Wrangler
                About Me: Website | TweetsMODX Hosting