How to decode Unicode escape sequences like “\u00ed” to proper UTF-8 encoded characters?

后端 未结 7 838
傲寒
傲寒 2020-11-22 01:01

Is there a function in PHP that can decode Unicode escape sequences like \"\\u00ed\" to \"í\" and all other similar occurrences?

I found si

相关标签:
7条回答
  • 2020-11-22 01:31
    print_r(json_decode('{"t":"\u00ed"}')); // -> stdClass Object ( [t] => í )
    
    0 讨论(0)
提交回复
热议问题