How to get the internal configuration variables of iconv() in PHP

1 Answer

0 votes
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");

echo "<pre>";
var_dump(iconv_get_encoding('all'));
echo "</pre>";


/*
run: 

array(3) {
  ["input_encoding"]=>
  string(10) "ISO-8859-1"
  ["output_encoding"]=>
  string(10) "ISO-8859-1"
  ["internal_encoding"]=>
  string(5) "UTF-8"
}

*/

 



answered Jun 29, 2016 by avibootz

Related questions

1 answer 158 views
2 answers 239 views
2 answers 223 views
1 answer 178 views
3 answers 216 views
...