Page 1 of 1

Problem with cyrillic

Posted: Fri Apr 07, 2017 7:09 am
by aleks.p
Hi all.

I'm having problems with сyrillic in Drive
From the Zimbra to NextCloud the cyrillic alphabet is transmitted as "?"
This happens both with a record in the MySQL, and with the names of the folders

If I edit record in MySQL in the NextCloud server - Drive in Zimbra show cyrillic without errors.

How can I tell a Zimbra that the transfer should go in the encoding of "UTF-8"
Any ideas?

Re: Problem with cyrillic

Posted: Wed Jun 07, 2017 6:33 pm
by ret
Hi,
same problem on NextCloud 12.0.0

Re: Problem with cyrillic

Posted: Tue May 22, 2018 12:17 pm
by ronaldodrum
My colleague Dominique found and solve this problem:

If the user has an accent in data, the json_decode return NULL and the
user can not be authenticated.
Correction :

/var/www/html/nextcloud/apps/zimbradrive/lib/auth/zimbraauthenticationbackendimpl.php

public function getZimbraUser($uid, $password)
{
$httpRequestResponse =
$this->doZimbraAuthenticationRequest($uid, $password);

if (200 !== $httpRequestResponse->getHttpCode())
{
throw new AuthenticationException();
}
$contents = $httpRequestResponse->getRawResponse();
$contents = utf8_encode($contents);
$response = json_decode($contents);
//$response = json_decode($httpRequestResponse->getRawResponse());
$userId = $response->{'accountId'};
$userDisplayName = $response->{'displayName'};
$userEmail = $response->{'email'};

$this->assertNotEmpty($userId, $userDisplayName, $userEmail);

return new ZimbraUser($userId, $userDisplayName, $userEmail);
}

Try to edit this.