Skip to content
Advertisement

removing strange characters from php string

this is what i have right now

Drawing an RSS feed into the php, the raw xml from the rss feed reads:

JavaScript

The php that i have so far is this.

JavaScript

The above returns;

JavaScript

If i remove the utf_decode, i get this

JavaScript

When i try a str_replace;

JavaScript

It doesnt work, i get;

JavaScript

Any thoughts?

Advertisement

Answer

Try this:

JavaScript

If this is not the solution browse this page http://us2.php.net/manual/en/function.html-entity-decode.php

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement