Sunday, April 27, 2014

Weird characters in PHP crawler/curl such as ’s...

Solution is to convert the doctype to UTF with the following line of code at the header:

header('Content-Type: text/html; charset=utf-8');

No comments: