baptistedonaux
2/4/2014 - 4:34 PM

Auto detect encod string and return the same string to UTF-8 encode.

Auto detect encod string and return the same string to UTF-8 encode.

<?php
	mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string));
?>