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

    WebApp russian symbols problem

    Kopano WebApp
    2
    5
    638
    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.
    • Ahillesss
      Ahillesss last edited by Ahillesss

      Hi

      Clean installation of core 8.6.80.964 and webapp 3.4.16.1517 on ubuntu server 18.04
      Z-push 2.3.9
      OpenLDAP users
      language-pack-ru is installed
      /etc/default/locales have one string - LANG=ru_RU.UTF-8

      If i create a file /etc/default/kopano with localization settings, mail stores just can’t created and users can’t to login

      without this file, mail stores creation is automatical with first login and without localized folders.

      For user is selected russian language and:
      The address book selector show “?” for russian words instead, for example " Глобальная адресная книга"
      For the user name or other details - the same.
      For mails (!!!) with russian chars in subject, or for message body too, if the message is text - the same ((((

      what where or how to solve this problem?

      Ahillesss fbartels 2 Replies Last reply Reply Quote 0
      • Ahillesss
        Ahillesss @Ahillesss last edited by

        I think i solved problem with russian chars view…
        I changed default charset in “server/includes/core/class.conversion.php”

        	/**
        	 * Get charset name from a codepage
        	 *
        	 * @param integer codepage Codepage
        	 * @return string iconv-compatible charset name
        	 */
        	public static function getCodepageCharset($codepage)
        	{
        		if(isset(Conversion::$_CODEPAGES[$codepage])) {
        			return Conversion::$_CODEPAGES[$codepage];
        		} else {
        			// Defaulting to iso-8859-15 since it is more likely for someone to make a mistake in the codepage
        			// when using west-european charsets then when using other charsets since utf-8 is binary compatible
        			// with the bottom 7 bits of west-european
        //			return "iso-8859-15";
        			return "utf-8";
        		}
        	}
        

        and i changed “$codepage” in “server/includes/core/class.operations.php”

        //					$codepage = isset($cpprops[PR_INTERNET_CPID]) ? $cpprops[PR_INTERNET_CPID] : 1252;
        					$codepage = isset($cpprops[PR_INTERNET_CPID]) ? $cpprops[PR_INTERNET_CPID] : 1251;
        

        After reboot and opcache re-creation, russian mails views correct.

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

          I will try to repeat this “fix” with another clean installation…

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

            So…
            I think that was not quite right. To the above edits, it is necessary to add also the setting of the correct value of the language export with the composition of the environment variables of the web server apache.

            1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels Kopano @Ahillesss last edited by

              @ahillesss said in WebApp russian symbols problem:

              If i create a file /etc/default/kopano with localization settings, mail stores just can’t created and users can’t to login

              can you post some logging around this? also which setting did you actually modify? which value did you set?

              Regards Felix

              Resources:
              https://kopano.com/blog/how-to-get-kopano/
              https://documentation.kopano.io/
              https://kb.kopano.io/

              Support overview:
              https://kopano.com/support/

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