Flatlyn
Flatlyn

Reputation: 2050

Quotes and Pound Sign showing as question mark

I'm working on a site that takes some RSS feeds and displays them. Each feed is from a different site.

3 of the sites use UTF-8 and one iso-8859-1, however two of them don't display quotes and pound signs correctly. The iso-8859-1 site displays correctly, and one of the UTF-8 does but the other UTF-8 ones don't.

I have defined the charset to be UTF-8 in my head section.

Upvotes: 1

Views: 2796

Answers (2)

Flatlyn
Flatlyn

Reputation: 2050

It turns out the solutions lay in the parser I was using for RSS, MagpieRSS which doesn't handle extra characters like '£' very well.

The solution was to switch to SimplePie RSS

Upvotes: 0

Hkachhia
Hkachhia

Reputation: 4539

You can use htmlentities for display this type character like £,

View this link http://www.ascii.cl/htmlcodes.htm

Upvotes: 2

Related Questions