class iconv extends function_core
{
public $examples = [
[
"UTF-8",
"ISO-8859-1//TRANSLIT",
"This is the Euro symbol '€'.",
],
[
"UTF-8",
"ISO-8859-1//IGNORE",
"This is the British Pound symbol '£'.",
],
// used in translations_in_action.php
[
"UTF-8",
"ISO-8859-1",
"This is the Euro symbol '€'.",
],
[
"UTF-8",
"ISO-8859-1",
'à',
],
[
"ISO-8859-1",
"UTF-8",
'_DOUBLE_QUOTES_\xe0_DOUBLE_QUOTES_', // "à" in ISO
],
];
// enter non ASCII characters in hex in $_str if $_in_charset is not UTF-8
// the converted $_string may not display properly if $_out_charset is not UTF-8
// shows the encoding difference in hexadecimal
// note that $str below actually represents an argument
$hex = unpack("H*in_charset", $_str) + unpack("H*out_charset", $_string);
';