I'm subscribing to an XML feed to populate some data in a webpage. The charset is UTF8 in both the database and is set to UTF8 in the meta tags of the actual pages.
However, when I publish the feed data, it comes out with odd characters like:
’
instead of '
.
I realize that the feed is probably using a non-UTF8 encoding for the text. However, I don't know how to determine that-- and the next feed I look at may have yet a different encoding.
How do I ensure that the data coming from the feed is correctly encoded as UTF8 before getting stored in the DB?
Thanks