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.
我想检测编码是否正确,但我发现 mb_detect_encoding 总是得到错误结果,并且我添加了很多 encoding_list UTF8 ISO-8859-* ....
你正在尝试做一些只有时有效的事情。编码检测并不是一门精确的“科学”,所以你能做的最好的事情就是避免它。