本文介绍了更改XML文件的编码类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我想将XML文件的编码类型更改为UTF-8.我尝试读取文件并使用UTF-8进行写回,但它写回了一个空文件,因为我不知道文件的默认编码.
请帮帮我.
问候
Hello,
I want to change the encoding type of XML file to UTF-8. I tried reading the file and write it back with UTF-8 but its written an empty file back, Because I dont know the default encoding of a file.
Kindly help me out.
regards
推荐答案
这篇关于更改XML文件的编码类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!