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

    I’m totally lost with charset problems, neither google nor trial-and-error (only error wink ) could solve my problem. Maybe one of the enlightened gurus here could provide a solution?

    I’m running the Gallery2 module on a german site, thus I have to deal with german "umlaute" and other special chars.

    At the admin side, everything is displayed fine, the problem exists only at the userside. You can see the userside at:

    http://bischof.homelinux.net/modx/index.php?id=4

    for example at the fourth row: "Die folgenden Bilderalben sind verfügbar", the last word should be "verfügbar".

    I tried charset=iso-8859-1, iso-8859-15, utf-8, but without success. I also tried different doctype- and xml-definitions, without success too. I even put @charset "utf-8"; in the css.

    The admin side has charset 8859-1 in the frameset definition (I guess via Administration::Preferences) and the frame, which displays the gallery module, shows:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title>Gallery Module</title>
    <style>
    body {
    	margin:			0px;
    }
    </style>
    <link rel="stylesheet" type="text/css" href="http://bischof.homelinux.net/modx/gallery2/modules/icons/iconpacks/paularmstrongdesigns/icons.css"/>
    <link rel="stylesheet" type="text/css" href="http://bischof.homelinux.net/modx/gallery2/themes/matrix/theme.css"/>
    </head>
    


    I tried to use this 1:1 for the userside, but my problem remains.

    Anyone’s got a clue? Any help is greatly appreciated!

    Frisco
      • 10190
      • 187 Posts
      Hello again,

      (talking to myself wink )

      I found out s.th. which could possibly help to get things running. As I wrote, you can see the charset problem at:
      http://bischof.homelinux.net/modx/index.php?id=4

      This is the gallery viewed via modx. Same gallery, viewed directly:
      http://bischof.homelinux.net/modx/gallery2/main.php

      E voila! No charset problems! But why? Seems to be some kind of "interaction problem" with modx?

      Frisco
        • 10190
        • 187 Posts
        The problem was the charset you can select in adminstration::site preferences. I had iso-8859-1 there, but gallery2 seems to work with utf-8, saving specialchars as utf-8 in mysql.

        If I got understand it right, the administration panel works with utf-8 regardless what you define, thus the gallery looked pretty well there all the time.

        The settings mentioned above seem to be for the userside, therefor putting them to utf-8 solves the problem. See now:
        http://bischof.homelinux.net/modx/index.php?id=4

        Frisco