Convert String from UTF- to ISO-8859-1 in PHP

If your html looks like “ycsoftware †categories“, you will need to use the ICONV function to convert the string to something that humans can read.

$str = iconv("UTF-8", "ISO-8859-1//TRANSLIT", $str);

Your result should look like:

ycsoftware - categories

Reference
http://www.php.net/manual/en/function.iconv.php

Let's share thisShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn