Skip to content

Commit 1345950

Browse files
author
Sebastian Krätzig
committed
Issue #657: Fix encoding issues
1 parent f1e316b commit 1345950

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PhpImap/DataPartInfo.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ protected function convertEncodingAfterFetch(): string
114114
$this->data = $this->mail->decodeMimeStr(
115115
(string) $this->data // Data to convert
116116
);
117+
118+
$this->data = $this->mail->convertToUtf8(
119+
$this->data,
120+
$this->charset
121+
);
122+
$this->charset = 'utf-8';
117123
}
118124

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

0 commit comments

Comments
 (0)