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.
我正在解析 CP1250 编码的字符串simplexml_load_string。所以,我在以 . 开头的字符串中声明它<?xml version="1.0" encoding="windows-1250"?>。不幸的是,所有节点在simplexml_load_string输出中都是 UTF8 编码的。
simplexml_load_string
<?xml version="1.0" encoding="windows-1250"?>
有没有办法,如何指定输出编码,或者在使用输出时我必须使用 iconv 吗?