Skip to content

Commit

Permalink
Issue #657: Fix encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Krätzig committed Mar 7, 2022
1 parent f1e316b commit 1345950
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PhpImap/DataPartInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ protected function convertEncodingAfterFetch(): string
$this->data = $this->mail->decodeMimeStr(
(string) $this->data // Data to convert
);

$this->data = $this->mail->convertToUtf8(
$this->data,
$this->charset
);
$this->charset = 'utf-8';
}

return (null === $this->data) ? '' : $this->data;
Expand Down

0 comments on commit 1345950

Please sign in to comment.