rAthus icon

[PHP] utf8($str) pour forcer une string en UTF-8

rAthus | PRO | 11/23/15 07:35:59 AM UTC | 0 ⭐ | 703 👁️ | Never ⏰ | []
PHP |

90 B

|

None

|

0 👍

/

0 👎

function utf8($str)
{
    return (mb_detect_encoding($str)=='UTF-8')?$str:utf8_encode($str);
}

Comments