Proper character encoding to display "”"?

Viewed 8578

I'm having some nasty character encoding problems that I just can't figure out.

Essentially, I'm screen scraping some HTML off of a site using PHP, then running it through PHP's DOMDocument to change out some URL's, etc., and when it's done, it outputs HTML with some weird things. Ex: where there should be an end quote, it puts out ”

I have the page's meta tag for charset set to utf-8 but then the ” characters are showing up as †on the site. I'm not sure if I just don't understand character encoding, or what.

Any suggestions on the best way to resolve this? Something client side with a meta tag, or some kind of server-side PHP conversion?

2 Answers
Related