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.
我想检查文件 xml 的编码是 UTF-8。如何在 php 中检查此文件 xml 的编码?
您可以尝试:
mb_check_encoding(file_get_contents("file.xml"), 'UTF-8');