Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
第一种情况下的正确值是 1,而不是 3。 如果要获取字节数,可以使用strlen()函数,或者更改iconv.internal_encodingphp.ini 中的指令或通过ini_set()(to ISO-8859-1) - 但它会影响所有iconv函数,所以我建议使用strlen().
strlen()
iconv.internal_encoding
ini_set()
ISO-8859-1
iconv