Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Z-Push -> apache german Umlaute (öäü) are not displayed correctly

    Synchronising (mobile) devices via Z-Push
    3
    4
    952
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • allcom
      allcom last edited by

      With Z-Push i had the problem that "umlaute(öäü) were not displayed correctly
      This character was represented as ‘?’

      Workaround:
      edit the File: z-push/backend/kopano/kopano.php
      and change setlocale to german:

      //setlocale to UTF-8 in order to support properties containing Unicode characters
      //setlocale(LC_CTYPE, "en_US.UTF-8");
      setlocale(LC_CTYPE, "de_DE.UTF-8");
      

      Solution :
      determinate the OS LANG:

      locale
      
      LANG=de_DE.UTF-8
      LANGUAGE=de_DE.UTF-8
      LC_CTYPE="de_DE.UTF-8"
      LC_NUMERIC="de_DE.UTF-8"
      LC_TIME="de_DE.UTF-8"
      LC_COLLATE="de_DE.UTF-8"
      LC_MONETARY="de_DE.UTF-8"
      LC_MESSAGES="de_DE.UTF-8"
      LC_PAPER="de_DE.UTF-8"
      LC_NAME="de_DE.UTF-8"
      LC_ADDRESS="de_DE.UTF-8"
      LC_TELEPHONE="de_DE.UTF-8"
      LC_MEASUREMENT="de_DE.UTF-8"
      LC_IDENTIFICATION="de_DE.UTF-8"
      LC_ALL=de_DE.UTF-8
      

      edit the File: /etc/apache2/envvars

      ## The locale used by some modules like mod_dav
      export LANG=C
      ## Uncomment the following line to use the system default locale instead:
      . /etc/default/locale
      
      export LANG
      
      Manfred 1 Reply Last reply Reply Quote 1
      • Manfred
        Manfred Kopano @allcom last edited by

        Hi @allcom,

        Where were the umlauts not displayed correctly (emails, appointments, contacts…)?

        Which versions of Z-Push and Kopano are you using?

        Were the umlauts displayed correctly in webapp without your workaround?

        Manfred

        1 Reply Last reply Reply Quote 0
        • allcom
          allcom last edited by

          Hello,
          the problem was exclusively with Z-Push email’s suppject (body messages ok), contacts. (Version 2.6.1)
          webapp was finaly ok.
          The problem was the default apache configuration.
          In the default configuration is LANG C

          In z-push/backend/kopano/kopano.php is the default hard coded

          setlocale(LC_CTYPE, "en_US.UTF-8");
          

          With this setting is “öäü” with the exchange connection by iOS and Andriod is this “???”

          The solution is the correct apache configuration with the correct LANG OS settings, or change the hard coded

          noise 1 Reply Last reply Reply Quote 1
          • noise
            noise @allcom last edited by

            @allcom said in Z-Push -> apache german Umlaute (öäü) are not displayed correctly:

            Hello,
            the problem was exclusively with Z-Push email’s suppject (body messages ok), contacts. (Version 2.6.1)
            webapp was finaly ok.
            The problem was the default apache configuration.
            In the default configuration is LANG C

            In z-push/backend/kopano/kopano.php is the default hard coded

            setlocale(LC_CTYPE, "en_US.UTF-8");
            

            With this setting is “öäü” with the exchange connection by iOS and Andriod is this “???”

            The solution is the correct apache configuration with the correct LANG OS settings, or change the hard coded

            Hello togheter, this solved my long not solved problem with nginx on ubuntu 18. change locale in:

            /usr/share/z-push/backend/kopano/kopano.php
            

            to

            setlocale(LC_CTYPE, "de_DE.UTF-8");
            

            my umlauts problem since beginning with kopano is now solved 🤗

            1 Reply Last reply Reply Quote 0
            • First post
              Last post