当前位置:Gxlcms > PHP教程 > php将中文字符转变成unicode编码方式

php将中文字符转变成unicode编码方式

时间:2021-07-01 10:21:17 帮助过:2人阅读

编码phpunicode

假设在PHP中:

$test="select top(1) AGG_TABLE0.day,AGG_TABLE0.subNet,AGG_TABLE0.location,AGG_TABLE0.不支持中文relation,cast(100*pmHoPrepSucc
/pmHoPrepAtt*(pmHoExeSucc/pmHoExeAtt) as decimal(18,2)) as 'eSrvcc不支持中文',cast(1...";

怎么将其中的中文字符替换成unicode编码的字符呢呢?其他保持不变。

人气教程排行