Get unicode character with curl in PHP

Posted by saturngod on Stack Overflow See other posts from Stack Overflow or by saturngod
Published on 2010-04-25T14:08:37Z Indexed on 2010/04/25 14:13 UTC
Read the original article Hit count: 330

Filed under:
|

I tried to get URL with curl. Return value contain unicode character. curl convert to \u for unicode character. How to get unicode character with curl ?

This is my code

<?php
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.ornagai.com/index.php/api/word/q/test/format/json");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$return=curl_exec($ch);
echo $return;
?>

© Stack Overflow or respective owner

Related posts about php

Related posts about curl