SyntaxFix
Write A Post
Hire A Developer
Questions
I was fetching a windows-1252 encoded file via cURL and the mb_detect_encoding(curl_exec($ch)); returned UTF-8. Tried utf8_encode(curl_exec($ch)); and the characters were correct.
mb_detect_encoding(curl_exec($ch));
utf8_encode(curl_exec($ch));