Return Json api accent

0

I am using a api that returns data in json . All accents are coming modified.

J\u00FAnior

With php , what function can I use to reverse this?

** Although it already undid it, it resembled this one. *

CODE:

<!doctype html>
<html>
    <head>
        <title>Search approved payments in last month</title>
    </head>
    <body>
        <?php
        require_once "../../lib/mercadopago.php";

        $mp = new MP("XXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

        // Sets the filters you want
        $filters = array(
            //"range" => "date_created",
            //"begin_date" => "NOW-1MONTH",
            //"end_date" => "NOW",
           // "status" => "approved",
            //"operation_type" => "regular_payment"
        );

        // Search payment data according to filters
        $searchResult = $mp->search_payment($filters);

        echo "<pre>";
        print_r($searchResult);
        echo "</pre>";

        // Show payment information
        ?>
        <table border='1'>
            <tr><th>id</th><th>site_id</th><th>date_created</th><th>operation_type</th><th>external_reference</th></tr>
            <?php
            foreach ($searchResult["response"]["results"] as $payment) {
                ?>
                <tr>
                    <td><?php echo $payment["collection"]["id"]; ?></td>
                    <td><?php echo $payment["collection"]["site_id"]; ?></td>
                    <td><?php echo $payment["collection"]["date_created"]; ?></td>
                    <td><?php echo $payment["collection"]["operation_type"]; ?></td>
                    <td><?php echo $payment["collection"]["external_reference"]; ?></td>
                </tr>
                <?php
            }
            ?>
        </table>
    </body>
</html>
    
asked by anonymous 10.09.2016 / 01:18

0 answers