This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #444 Incorrect character encoding due to transposed arguments for…
… mbstring_convert_encoding (mbunzel) This PR was merged into the 5.1-dev branch. Discussion ---------- Incorrect character encoding due to transposed arguments for mbstring_convert_encoding Depending on which extension is installed, swiftmailer will call mb_convert_encoding($string, $charset, 'utf-8') or iconv($charset, 'utf-8//TRANSLIT//IGNORE', $string). The signatures of these functions are mb_convert_encoding($str, $to_encoding, $from_encoding) and iconv($in_charset, $out_charset, string $str). -> those two function calls do the exact opposite of each other. Users with installed mbstring extension will experience garbled output if the specified charset is any value other than utf-8 or iso-8850-1, in which case the conversion is skipped. This pull request fixes the transposed arguments so that both mbstring and iconv will convert *from* $charset *to* utf-8. Commits ------- 62a4be0 fixes transposed from-charset and to-charset arguments in mbstring_convert_encodng
- Loading branch information