每当我尝试解析XML中的特殊字符,例如“ō”或“満月先生”,就会出现错误。XML文档声称使用UTF-8编码,但事实并非如此。
以下是我在Firefox中查看XML时麻烦的文本示例:
Bleach: The Diamond Dust Rebellion - MŌ Hitotsu no HyŌrinmaru; Bleach - The DiamondDust Rebellion - Mou Hitotsu no Hyourinmaru
在实际网站上,“Å�”实际上是字符“ō”。
在实际网站上,这些字符显示为“満月先生”和“美夜子”:
One day, Doraemon and his friends meet Professor Mangetsu (満月先生, Professor Mangetsu?), who studies magic and magical beings such as goblins, and his daughter Miyoko (美夜子, Miyoko?), and are warned of the dangerous approximation of the "star of the Underworld" to the Earth's orbit.
除了这些特殊字符之外,实际的XML文件已经格式化正确,但它们似乎没有使用UTF-8编码。有没有办法让NSXML解析这些XML文件?
Bleach: The Diamond Dust Rebellion - MŌ Hitotsu no HyŌrinmaru; Bleach - The DiamondDust Rebellion - Mou Hitotsu no Hyourinmaru
在实际网站上,“Å�”实际上是字符“ō”。
在实际网站上,这些字符显示为“満月先生”和“美夜子”:
One day, Doraemon and his friends meet Professor Mangetsu (満月先生, Professor Mangetsu?), who studies magic and magical beings such as goblins, and his daughter Miyoko (美夜子, Miyoko?), and are warned of the dangerous approximation of the "star of the Underworld" to the Earth's orbit.
除了这些特殊字符之外,实际的XML文件已经格式化正确,但它们似乎没有使用UTF-8编码。有没有办法让NSXML解析这些XML文件?