Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iconv_get_encoding(3) [php man page]

ICONV_GET_ENCODING(3)							 1						     ICONV_GET_ENCODING(3)

iconv_get_encoding - Retrieve internal configuration variables of iconv extension

SYNOPSIS
mixed iconv_get_encoding ([string $type = "all"]) DESCRIPTION
Retrieve internal configuration variables of iconv extension. PARAMETERS
o $type - The value of the optional $type can be: oall oinput_encoding ooutput_encoding ointernal_encoding RETURN VALUES
Returns the current value of the internal configuration variable if successful or FALSE on failure. If $type is omitted or set to "all", iconv_get_encoding(3) returns an array that stores all these variables. EXAMPLES
Example #1 iconv_get_encoding(3) example <pre> <?php iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); var_dump(iconv_get_encoding('all')); ?> </pre> The above example will output: Array ( [input_encoding] => ISO-8859-1 [output_encoding] => ISO-8859-1 [internal_encoding] => UTF-8 ) SEE ALSO
iconv_set_encoding(3), ob_iconv_handler(3). PHP Documentation Group ICONV_GET_ENCODING(3)

Check Out this Related Man Page

MB_LIST_ENCODINGS(3)							 1						      MB_LIST_ENCODINGS(3)

mb_list_encodings - Returns an array of all supported encodings

SYNOPSIS
array mb_list_encodings (void ) DESCRIPTION
Returns an array containing all supported encodings. PARAMETERS
This function has no parameters. RETURN VALUES
Returns a numerically indexed array. ERRORS
/EXCEPTIONS This function does not emit any errors. EXAMPLES
Example #1 mb_list_encodings(3) example <?php print_r(mb_list_encodings()); ?> The above example will output something similar to: Array ( [0] => pass [1] => auto [2] => wchar [3] => byte2be [4] => byte2le [5] => byte4be [6] => byte4le [7] => BASE64 [8] => UUENCODE [9] => HTML-ENTITIES [10] => Quoted-Printable [11] => 7bit [12] => 8bit [13] => UCS-4 [14] => UCS-4BE [15] => UCS-4LE [16] => UCS-2 [17] => UCS-2BE [18] => UCS-2LE [19] => UTF-32 [20] => UTF-32BE [21] => UTF-32LE [22] => UTF-16 [23] => UTF-16BE [24] => UTF-16LE [25] => UTF-8 [26] => UTF-7 [27] => UTF7-IMAP [28] => ASCII [29] => EUC-JP [30] => SJIS [31] => eucJP-win [32] => SJIS-win [33] => JIS [34] => ISO-2022-JP [35] => Windows-1252 [36] => ISO-8859-1 [37] => ISO-8859-2 [38] => ISO-8859-3 [39] => ISO-8859-4 [40] => ISO-8859-5 [41] => ISO-8859-6 [42] => ISO-8859-7 [43] => ISO-8859-8 [44] => ISO-8859-9 [45] => ISO-8859-10 [46] => ISO-8859-13 [47] => ISO-8859-14 [48] => ISO-8859-15 [49] => EUC-CN [50] => CP936 [51] => HZ [52] => EUC-TW [53] => BIG-5 [54] => EUC-KR [55] => UHC [56] => ISO-2022-KR [57] => Windows-1251 [58] => CP866 [59] => KOI8-R ) PHP Documentation Group MB_LIST_ENCODINGS(3)
Man Page