Reply to Re: Problem with multi-byte characters with curl

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация