Skip to content

Commit 62a4be0

Browse files
committed
fixes transposed from-charset and to-charset arguments in
mbstring_convert_encodng
1 parent 306fa05 commit 62a4be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/classes/Swift/Mime/MimePart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected function _convertString($string)
203203
if (!in_array($charset, array('utf-8', 'iso-8859-1', ''))) {
204204
// mb_convert_encoding must be the first one to check, since iconv cannot convert some words.
205205
if (function_exists('mb_convert_encoding')) {
206-
$string = mb_convert_encoding($string, $charset, 'utf-8');
206+
$string = mb_convert_encoding($string, 'utf-8', $charset);
207207
} elseif (function_exists('iconv')) {
208208
$string = iconv($charset, 'utf-8//TRANSLIT//IGNORE', $string);
209209
} else {

0 commit comments

Comments
 (0)