💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ //方法一: 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 ; ~~~