SSilence / php-imap-client

a easy solution for simple IMAP email access in php
MIT License
268 stars 136 forks source link

Mailbox encoding problem #177

Closed matiux closed 7 years ago

matiux commented 7 years ago

Hi, i have a problem with getFolders() method.

$imapClient = new ImapClient($mailbox, $username, $password, $encryption)
$mailboxes = $imapClient->getFolders('.', 1);

I'm connected to my Gmail that contains some mailboxes like Friends/Giò Rossi

However, what I see is Friends/Gi&API- Rossi

Is there some internal methos which can solve this problem?

Thanks

ZoTyA1975 commented 7 years ago

You can use this: mb_convert_encoding($foldername, 'UTF-8', 'UTF7-IMAP')

mattparksjr commented 7 years ago

Closed because of @ZoTyA1975 solution. Thanks.