We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41421
    • 29 Posts
    This is in my header:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="ar" xml:lang="ar">
        
        <head>
        <meta name="language" content="arabic, AR" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />[/img]

    ... and you can see my settings above.

    As I wrote above: "As character set, I chose utf-8 and as collation "utf8-unicode-ci", but I can see in phpmyadmin that all collations for my ModX database default in "latin1_swedish_ci"." [ed. note: etelka1 last edited this post 11 years, 7 months ago.]
      • 41421
      • 29 Posts
      It looks as if I would never get a satisfying answer.

      What should I do? Abandon ModX?
      • This is not a problem with MODx. It is a problem with your database configuration. If you do not know how to configure your database to have utf8 as its default character set and collation, contact your hosting tech support for help.
          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
        • The database tables contain some data fields set by MODX that also need to be changed/reset to utf8. I recently had to do this in a new db. Look within each table, and if you can browse it then check each row. There are a lot of individual rows that will need to be fixed.

          I found that the easiest way was to check each row from a table that needed resetting, then edit them all at once. In phpMyAdmin.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 41421
            • 29 Posts
            I am very thankful to you, Frogabog, that you try to help me.

            The problem is not utf-8 but the collation. I cannot change it from latin1_swedish_ci to for instance utf8_unicode_ci. Did you find a way to do this?
            • Yes, I did. It took a couple hours though, so prepare for it. :~}

              I had to use phpMyAdmin to access each table. You have to check both the structure of the table, and the table data itself. Check the table for anything set to latin1_swedish and change it. You have to look everywhere, in each row.

              Edit: Are you asking about how to edit a field in phpMyAdmin?
              [ed. note: frogabog last edited this post 11 years, 7 months ago.]
                Frogabog- MODX Websites in Portland Oregon
                "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                Having server issues? These guys have MODX Hosting perfected - SkyToaster
                • 41421
                • 29 Posts
                That's really a big job! I am also using phpMyAdmin (with ovh as a hoster) and tried it with a few tables, but after reloading the collation defaults in latin1_swedish_ci.
                • Check your database user permissions from the control panel. Sounds like you don't have full permissions.
                    Frogabog- MODX Websites in Portland Oregon
                    "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                    Having server issues? These guys have MODX Hosting perfected - SkyToaster
                    • 41421
                    • 29 Posts
                    Sorry, to have to ask this, but where can I check these database user permissions? Which control panel?
                    N.B.- I created the website and therefore also the database.
                    • Can you log into your host, and access a control panel where you can do things like create email addresses and other nifty stuff for your server?

                      It's where you'd find the file manager for your server.
                        Frogabog- MODX Websites in Portland Oregon
                        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                        Having server issues? These guys have MODX Hosting perfected - SkyToaster