阅读背景:

我如何告诉DOMDocument-> load()我想要它使用什么编码?

来源:互联网 

I search for and process XML files from elsewhere, and need to transform them with some XSLTs. No problem. Using PHP5 and the DOM library, everything's a snap. Worked fine, up till now. Today, funky characters were in the XML file -- "smart" quotes from Word, it looks like. Anyways, DOMDocument->load complained about them, saying that they weren't UTF-8, and to specify the encoding.I search for and process XML files from elsewhe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: