php字符串转Unicode编码,Unicode编码转php字符百度了很多,都一样,要么不对,要不就是只是把字符串的汉字转Unicode经过多次试验查找,找到了如下方法,注意:字符串编码必须是utf-8,如果不是自行用icon转一下//字符串转Unicode编码 function unicode_encode($strLong)
一、查看编码SHOW VARIABLES LIKE '%set%';二、将编码设置为UTF-8SET character_set_client = utf8; SET character_set_connection = utf8; SET character_set_database = utf8; SET character