We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12793
    • 293 Posts
    Hi! I’ve a working version of modx

    Now I would like to migrate layout and DB to another server

    Can you tell me the right steps for do this?

    Thanks
      • 12793
      • 293 Posts
      I’ve tried to copy portal files an reexecute setup with "upgrade"... after this I show my portal but many specials chars are wrong (è, ò, à ....)

      For example

      in my old portal I show:

      V° Test

      in my new portal I show:

      V° Test


      Can you tell me how to resolve this charset problem??

      I’ve imported the same DB!

      Thanks
        • 21838
        • 284 Posts
        how did you created your new DB? Please look at the encoding of both (old and new) db.
          MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
          • 12793
          • 293 Posts
          I’ve made a dump and restore....

          huh
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            In the database where you did the restore, did you double-check to make sure it was all utf8? Usually when creating a new database you have to go in with phpMyAdmin, go to the Operations tab, and at the bottom you’ll see the collation selection drop down.

            The relevant query is
            ALTER DATABASE `dbname` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci


            And was the original database also all utf8? If not, you need to alter the second database to match the character set and collation of the first.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 12793
              • 293 Posts
              I’ve tried to apply your query but I still show this strange chars sad

              in my remote DB I’ve latin_swedish

              I’ve tried to set to this value my new site_content table but I still show same problem with chars sad
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                That won’t change any existing content, it will only set the database to use utf8 on any subsequent inserts or updates.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org