简体   繁体   English

文字编码问题

[英]text encoding issues

I have some xml that contains dodgy encoded characters eg ö 我有一些XML,其中包含狡猾的编码字符,例如ö

how can i convert the xml into a valid format. 我如何将xml转换为有效格式。

a flash app is using the xml file but certain words haved dodgy characters in there. 一个Flash应用程序正在使用xml文件,但是其中某些单词含糊不清。 the flash app need to do various things with the text. Flash应用程序需要对文本执行各种操作。

im using c# to generate the xml 即时通讯使用C#生成xml

When you see stuff like é or ç, it is often the sign you are reading an UTF-8 encoded file (or data) with software thinking it is plain Ascii (or Latin1, etc.). 当您看到诸如é或ç之类的东西时,通常是您正在阅读使用UTF-8编码的文件(或数据)的标志,并且使用软件认为它是纯Ascii(或Latin1等)。

Just use the right decoder. 只需使用正确的解码器即可。

Note: it is a valid XML format: UTF-8 is even the default encoding of XML, IIRC. 注意:这有效的XML格式:UTF-8甚至是XML的默认编码,即IIRC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM