curl-and-php
Re: decoding iso-8859-1 characters
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Nov 2006 09:07:35 +0100 (CET)
Date: Tue, 21 Nov 2006 09:07:35 +0100 (CET)
On Mon, 20 Nov 2006, Tim Schwartz wrote:
> <meta http-equiv="Content-Type" content="text/html; Charset=iso-8859-1" />
That's the charset you use locally in your HTML.
> curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_close ($ch);
> echo $data;
Then you've fetched a remote document that may not be using iso-8859-1. To be
really sure, you should check and if necessary convert that accordingly before
you output it.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2006-11-21