You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be much better to do the conversion like this:
$name=\mb_convert_encoding($cleanname, 'UTF8', mb_detect_encoding(\str_replace($this->server, '', $mailboxInfo->name)));
The text was updated successfully, but these errors were encountered:
I figured out I copied/pasted the purposal too fast.
$cleanname variable is the result of:
$cleanname = str_replace($this->server, '', $mailboxInfo->name);
Then you do:
$name=\mb_convert_encoding($cleanname, 'UTF8', mb_detect_encoding($cleanname));
Hi there,
at line 210 of file Connection.php this UTF8 conversion is giving me some problems reading an office365 server.
foreach ($mailboxesInfo as $mailboxInfo) { $name = \mb_convert_encoding(\str_replace($this->server, '', $mailboxInfo->name), 'UTF-8', 'UTF7-IMAP'); $this->mailboxNames[$name] = $mailboxInfo; }
It would be much better to do the conversion like this:
$name=\mb_convert_encoding($cleanname, 'UTF8', mb_detect_encoding(\str_replace($this->server, '', $mailboxInfo->name)));
The text was updated successfully, but these errors were encountered: