We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9130
    • 171 Posts
    I’m running a modx based hebrew website at www.ofanaim.net using utf8 as my sites encoding.
    I’ve just upgraded from 0.9.5 to 0.9.6.1 and everythihng works as expected except that the title now shows question marks instead of the sites name. I’ve tried adding ’SET NAMES utf8’ in various places as I previously did with 0.9.5 but that did not seem to solve the problem.

    Any suggestions will be most welcome.
    Erez
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Which title? It all looks good to me... although I get the message about "simple page for older browsers"; I’m using FF 2.0.0.9 on OS X (I have the 2.0.0.10 update downloaded, just haven’t applied it yet).

      Looks good in Safari as well (same simple page message there, as well)

      I’m sorry, my Hebrew is so bad I’ve never worked with it on a website, so I can’t really say much about it.
        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
        • 9130
        • 171 Posts
        The title looks ok only because I changed it to english, the original was אופניים.נט which showed up as ??.??????? in the browsers title and tabs.

        And yea I should remove the simple page message, for some reason it does not seem to work correctly anymore.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I don’t know what the problem could be... I just gave it a try on my site, edited the site name in the configuration, and it seems to be working just fine...

          http://www.sottwell.com/

          What is the character set of your database?
            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
            • 9130
            • 171 Posts
            Well, your site isn’t unicode at all so I would not expect it to have the same encoding related problems.
            Here are my MySql settings from MyPhpAdmin:
            MySQL charset: UTF-8 Unicode (utf8)
            MySQL Collation: utf8_bin , all my tables use this collation

            It seems strange that only the sites title gets corrupted, changing the page title or contents works fine.
            In MyPhpAdmin I can see that the title is corrupted and shows up as question marks but manually editing that through database administration does not seem to help either, the data is still corrupted when it gets back out.

            (P.S. I changed the title back to hebrew so yo can see the problem)
              • 7231
              • 4,205 Posts
              Check to see if the $database_connection_charset setting is correct (you can set this in the site settings panel) and check if it is set the same in the config.inc.php file. I think that this was not getting set correctly before and now is. I am just guessing but worth checking out.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don't know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Quote from: etal at Nov 28, 2007, 05:06 AM

                Well, your site isn’t unicode at all so I would not expect it to have the same encoding related problems.
                Oops... I keep forgetting that that default template isn’t using [(modx_charset)]. I fixed it; it’s specifying UTF-8 now, and still working OK.
                  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
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I suspect you’ll find those question marks in the database; you can probably go ahead and fix the text directly in the database (using phpMyAdmin or whatever other database client you use). How they came to be that way in the first place is another question, of course.
                    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
                    • 9130
                    • 171 Posts
                    As I already said, editing the value through PhpMyAdmin does not help either. After the edit I can see the value correctly in the modx manager but the titles of both the manager and the general site still won’t show up correctly.

                    $database_connection_charset is set to utf8 in both the sites manager and config.inc.php.
                      • 22303 MODX Staff
                      • 10,725 Posts
                      I’m almost certain then that your database charset/collation is not utf8. The server may be set to that, but MODx uses SET CHARSET (rather than SET NAMES) so that your actual database charset/collation is used, regardless of what is specified in the configuration. It’s important that your actual database charset matches what you set the connection charset to.