Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : iconv Functions : iconv_mime_encode

iconv_mime_encode

Composes a MIME header field (PHP 5)
string iconv_mime_encode ( string field_name, string field_value [, array preferences] )

Example 964. iconv_mime_encode() example

<?php
$preferences
= array(
   
"input-charset" => "ISO-8859-1",
   
"output-charset" => "UTF-8",
   
"line-length" => 76,
   
"line-break-chars" => "\n"
);
$preferences["scheme"] = "Q";
// This yields "Subject: =?UTF-8?Q?Pr=C3=BCfung_Pr=C3=BCfung?="
echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);

$preferences["scheme"] = "B";
// This yields "Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?="
echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);
?>

Change Language


Follow Navioo On Twitter
iconv_get_encoding
iconv_mime_decode_headers
iconv_mime_decode
iconv_mime_encode
iconv_set_encoding
iconv_strlen
iconv_strpos
iconv_strrpos
iconv_substr
iconv
ob_iconv_handler
eXTReMe Tracker