parsedata.php
// Encode all data in UTF-8 so it can be encoded as JSON.
Encode all data in UTF-8 so it can be encoded as JSON.
Encode all data in UTF - 8 so it can be encoded as JSON .
function utf8_encode_deep(&$input) {
    if (is_string($input)) {
        $input = utf8_encode($input);
    } else if (is_array($input)) {
        foreach ($input as &$value) {
            utf8_encode_deep($value);
        }
        unset($value);
    } else if (is_object($input)) {
        $vars = array_keys(get_object_vars($input));
        foreach ($vars as $var) {
            utf8_encode_deep($input->$var);
        }
    }
}
function utf8_encode_deep ( & $ input ) { if ( is_string ( $ input ) ) { $ input = utf8_encode ( $ input ) ; } else if ( is_array ( $ input ) ) { foreach ( $ input as & $ value ) { utf8_encode_deep ( $ value ) ; } unset ( $ value ) ; } else if ( is_object ( $ input ) ) { $ vars = array_keys ( get_object_vars ( $ input ) ) ; foreach ( $ vars as $ var ) { utf8_encode_deep ( $ input -> $ var ) ; } } }
Encode all data in UTF-8 so it can be encoded as JSON.
Encode all data in UTF - 8 so it can be encoded as JSON .