Skip to content

UTF-8 characters getting problems #657

@JiriSch

Description

@JiriSch

Thank you for this library, I am using it for years, I was using up to version 3.1.0 but now I wanted to upgrade to 4.5 ang get problems with UTF-8 characters.

  • PHP IMAP version: tested anything newver than 3.1.0
  • PHP Version: 7.4
  • Type of execution: web server

Email with UTF-8 characters - these characters are unreadable.

The used code:

	$mailbox = new PhpImap\Mailbox('{xxxxxx:143/imap4/notls/novalidate-cert}INBOX', 'xxxxx', 'xxxx');
	var_dump($mailbox->getServerEncoding()); //---GETTING UTF-8---
	$mailsIds = $mailbox->searchMailbox('ALL');
	if(!$mailsIds) return 0;
	foreach ($mailsIds as $key=>$mailsId)
	{
		$mail = $mailbox->getMail($mailsId);
		//var_dump($mail);
		
		var_dump($mail->textHtml);
	}

I tried to test any version newer than 3.1.0 but without success, only till 3.1.0 works.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationThis will be tested / debugged or checked out.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions