1
4

1 回答 1

5

\u0080 means that the input character was \x80 which is the Euro sign in Windows-1252. So I assume your string is encoded in this charset, then you should convert it to UTF-8 because json_encode only works with UTF-8 input:

$string = iconv('Windows-1252', 'UTF-8', $string);
于 2013-03-11T16:47:18.443 回答