|
Posted by Stephen Kay on 03/23/06 20:57
in article 1143093823.569321.89030@z34g2000cwc.googlegroups.com, R. Rajesh
Jeba Anbiah at ng4rrjanbiah@rediffmail.com wrote on 3/23/06 1:03 AM:
> Stephen Kay wrote:
>> in article C0475AB8.59ECA%sk@karma-lab.nospam.com, Stephen Kay at
>> sk@karma-lab.nospam.com wrote on 3/22/06 7:52 PM:
> <snip>
>> Nevermind, I found the answer:
>>
>> Need to use mb_convert_encoding() on the results of curl.
>
> IIRC, you don't have to if your PHP file is in UTF8
This turned out to be a temporary fix. What really fixed it (for some
reason) was doing this to the curl session:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Charset: UTF-8;'));
--
Stephen Kay
Karma-Lab sk@karma-lab.NOSPAM.com
^^^^^^^
[Back to original message]
|