Hehum, in Zend_Dom_Query #177
$domDoc = new DOMDocument;
it should be
$domDoc = new DOMDocument('1.0', 'utf-8'); or sth like that. Am I right?!?!?

Noticed that characters are messed after I do Zend_Dom_Query::query() on
response body, so, problem is probably in Zend_Dom_Query.

Anyway, fixing that didn't help :(

Regards,
Saša Stamenković


On Tue, Sep 22, 2009 at 2:27 PM, Саша Стаменковић <umpir...@gmail.com>wrote:

> I monitored firefox headers with live HTTP headers when visiting this site,
> and it sends Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> when I do the same, I still get wrong chars :(
>
> Regards,
> Saša Stamenković
>
>
>
> On Tue, Sep 22, 2009 at 10:49 AM, umpirsky <umpir...@gmail.com> wrote:
>
>>
>> Hi.
>>
>> I'm crawling this site http://www.mojauto.rs using Zend_Http_Client.
>> Strange
>> thing is that I get messed Serbian characters (č.ć,ž...), probably
>> encoding
>> problem. I tried to explicitly set utf-8 with
>> $client->setHeaders('Content-type: text/html; charset=utf-8'); but same
>> problem occurs.
>>
>> Any idea?
>>
>> Regards,
>> Saša Stamenković
>> --
>> View this message in context:
>> http://www.nabble.com/Zend_Http_Client-and-utf-8-tp25530629p25530629.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>

Reply via email to