Page 1 of 1

UTF-8 conversion?

Posted: Sun Dec 19, 2004 4:05 pm
by turbo2ltr
I'm trying to make an RSS feed generator for my site. It is complete, except for this one problem. In the content, someone used an extended character. I have no idea how it got there. It's a 0x92 and it was used as an apostrophe.

In any case, this character is not legal for use in RSS feeds. Is there some function that can strip, or convert extended characters?

I used

Code: Select all

echo htmlentities($buf,ENT_QUOTES,"UTF-8");
But it didn't make a difference.

Thanks,
Mike

Posted: Sun Dec 19, 2004 4:12 pm
by gite_ashish
may be: [php_man]mb_decode_numericentity[/php_man]

u might want to go thru: http://us2.php.net/manual/en/ref.mbstring.php