UTF-8 conversion?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
turbo2ltr
Forum Commoner
Posts: 29
Joined: Sun Jul 18, 2004 4:08 pm

UTF-8 conversion?

Post 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
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

Post 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
Post Reply