因而,要获得以utf - 8编码的字符串的正确长度,必须使用mb_strlen (string,“ utf - 8 ”),而不只是strlen (string)。
So, to get the correct length of string encoded in utf-8, you have to use mb_strlen (string, "utf-8") instead of just strlen (string).
因而,要获得以utf - 8编码的字符串的正确长度,必须使用mb_strlen (string,“ utf - 8 ”),而不只是strlen (string)。
So, to get the correct length of string encoded in utf-8, you have to use mb_strlen (string, "utf-8") instead of just strlen (string).
应用推荐