How do I check if a string contains of at least one Chinese character?
How do I check if a string contains of开发者_如何学运维 at least one Chinese character?
try
mb_detect_encoding($str, "big5,gb2312");
potentially you need to use mb_detect_order to make it more precise
精彩评论