I use the curl to get the file content from amazon s3. but response data has some garbred like this:
ÿþ<�html> <�body> <�a href="#url>alsdkfjasdfkj
But the text is ok when I write the response data into a file like this:
<html>
<body>
<a href="#url>alsdkfjasdfkj
whether I read content from response data nor I write data from the new file, I get the same content and grabled inside above.
How could I resolve it? I want to get the regular text and do something else and next ... etc...
I want to get the regular response data like
<html><body>......</body></html>
Many thanks.