I have a script which was running without any issue, However, after upgraded to higher PHP e.g 5.6. I got error deprecated function iconv_set_encoding() error. Here is the code I have
iconv_set_encoding("internal_encoding","UTF-8"); iconv_set_encoding("input_encoding","UTF-8"); iconv_set_encoding("output_encoding","UTF-8");
To solve the issue, you can use the ini_set function
ini_set('default_charset', 'UTF-8');