Commit b5ece968 authored by Steven Wittens's avatar Steven Wittens

- Fixing charset in mime_header_encode()

parent ba415689
...@@ -1832,7 +1832,7 @@ function mime_header_encode($string) { ...@@ -1832,7 +1832,7 @@ function mime_header_encode($string) {
$output = ''; $output = '';
while ($len > 0) { while ($len > 0) {
$chunk = truncate_utf8($string, $chunk_size); $chunk = truncate_utf8($string, $chunk_size);
$output .= ' =?'. $charset .'?B?'. base64_encode($chunk) ."?=\n"; $output .= ' =?UTF-8?B?'. base64_encode($chunk) ."?=\n";
$c = strlen($chunk); $c = strlen($chunk);
$string = substr($string, $c); $string = substr($string, $c);
$len -= $c; $len -= $c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment