Tag: PHP file_get_contents

PHP get data from external url encoding UTF-8

If you want loading a HTML from an external server. It doesn’t matter if you want to get content from page with meta charset=”utf-8″, we use file_get_contents() function normally. But if it is not utf-8, another code like Shift_JIS or any other. You will get something similar to this:     I tried both saving […]

Read more...