NYCPHP Meetup

NYPHP.org

[nycphp-talk] SimpleXML - UTF8

John Campbell jcampbell1 at gmail.com
Mon Oct 19 10:55:53 EDT 2009


On Mon, Oct 19, 2009 at 7:32 AM, Dan Cech <dcech at phpwerx.net> wrote:
> Try:
>
> $text = @iconv('UTF-8','UTF-8//TRANSLIT',$text);

Thanks Dan,

I knew there had to be something simple.

It looks like mb_convert_encoding($txt,'UTF-8','UTF-8') will work
similarly, but just deletes the offending bytes.

Regards,
John Campbell



More information about the talk mailing list