Character encoding issue with cURL

Discussion in 'PHP' started by pinkstor, Nov 3, 2010.

  1. #1
    I'm scraping a list of titles from a website, and I'm having a problem. Here's the title as in reads on the target site:

    It’s AjoBurrito: a little taste of Mexico – here in Phoenix!

    But when I scrape the title and then echo it, I end up with:

    It’s AjoBurrito: a little taste of Mexico – here in Phoenix!

    The target page is set as charset=iso-8859-1, I'm trying to run my scripts as UTF-8. I send the UTF-8 headers with cURL, but what else should I be doing?

    Thanks! I've spent hours working on this!
     
    pinkstor, Nov 3, 2010 IP