I used file_get_contents, curl, simple html dom but can not get HTML from this url:
http://www.zing.vn/news/xa-hoi/choang-voi-clip-cu-ba-cao-tuoi-nhay-boc-nhu-vu-cong/a124040.html
I don’t know why, but the result is haphazard characters, not HTML code.
You need to set CURLOPT_ENCODING, if empty, curl will handle the encoding itself and that’s exactly what you need 🙂
I’ve tested the code below and it returns the correct character encoding .