_mime_header_decode
includes/unicode.inc, строка 308
- Версии
- 5 – 6
_mime_header_decode($matches)
Helper function to mime_header_decode
Код
<?php
function _mime_header_decode($matches) {
// Regexp groups:
// 1: Character set name
// 2: Escaping method (Q or B)
// 3: Encoded data
$data = ($matches[2] == 'B') ? base64_decode($matches[3]) : str_replace('_', ' ', quoted_printable_decode($matches[3]));
if (strtolower($matches[1]) != 'utf-8') {
$data = drupal_convert_to_utf8($data, $matches[1]);
}
return $data;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии