CURL and UTF8 supporting

i have one site with code:

<… html code here …>
<… html code here …>

i used curl lib to read this page.
but result return is:

<… html code here …>
<… html code here …>

i used utf8_encode , decode… but it takes no effect.
so then, did CURL support UTF8 ? :confused:

any one here ?

oh man, nobody can resolve this problem?

anyone here?
i don’t known what’s this hell.

i can’t resolve this error , and understand it
i used utf8 encoding and decoding, … tried more ways.
so then, why the CURL data transfer result is different with my source code.

perhaps it’s seems the problem with character encoding…

the first
this string’s japanese , i can read it on my site

however, when i used CURL to grab data on this site, i can’t read this string

curl has an active and knowledgeable mailing list. Perhaps you should ask there?


// ...
$ch = curl_init();
      curl_setopt( $ch, CURLOPT_ENCODING, "UTF-8" );

If that doesn’t help, then just pass in an empty string instead, which is used for auto detection I believe,

// ...
$ch = curl_init();
      curl_setopt( $ch, CURLOPT_ENCODING, "" );

But try the first one first :wink:

What does your code look like?