ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ //方法一: function unicode_decode($str) { //Unicode解码 linux UCS-2BE,windows UCS-2LE $t = preg_replace("#\\\u([0-9a-f]{4})#ie", "iconv('UCS-2BE', 'UTF-8', pack('H4', '\\1'))", $str); return $t; } //方法二: function unicode_decode($name){ $json = '{"str":"'.$name.'"}'; $arr = json_decode($json,true); if(empty($arr)) return ''; return $arr['str']; } $content = unicode_decode($_POST['content']); echo $content ; ~~~