download($normal_url); // this 1 works download($special_char_url); // this throw 404 error
The thai characters file name throw error
1
GuzzleHttp\Exception\ClientException: Client error: `GET http://example.com/path/to/%E0%B8_%E0%B8%A3%E0%B8%B5%E0%B8%A1%E0%B8%AD%E0%B8%B2%E0%B8_%E0%B8_%E0%B9_%E0%B8%B3.jpg` resulted in a `404 Not Found` response:
The URL encoding is actually wrong, because I paste the URL to Chrome address bar, and then copy again, it gives