i have array in php has values in thai language. when use json_encode pass values in javascript json_decode not gives output ,returns blank.
print_r ($myarray) returns output in thai language.
json_encode($myarray) returns output '\u0e23'. how convert thai language output .
the function modifies codification string.
use second parameter: json_unescaped_unicode
json_encode( $myarray, json_unescaped_unicode ); check out constants , choose best you.
Comments
Post a Comment