PHP Curl Not formatting quotes properly; producing weird character set for single/double quotes
Posted
by
user595052
on Stack Overflow
See other posts from Stack Overflow
or by user595052
Published on 2011-01-29T15:22:42Z
Indexed on
2011/01/29
15:25 UTC
Read the original article
Hit count: 173
I wrote a html scraper to scrape my various social identites, so I can make a real time 'biography' website.
However after using php curl_exec, I find that texts that I have quoted, end up being formatted in a weird character set.
ex: "I love dogs" gets formatted to ’I love dogs ’ "I hate cheese" gets formatted to “I hate cheese�
How do I either scrub these characters, or set curl not to format quotes like this.
Also, I have turned off magic_quotes.
© Stack Overflow or respective owner