curl-and-php
Re: decoding iso-8859-1 characters
Date: Tue, 21 Nov 2006 09:21:27 -0500
Got it! Only took utf8_encode(), i guess it wasnt really iso-8859-1, some
html programmer should be shamed for this:)
thx,
tim
On 11/21/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> 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-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-11-21