简体   繁体   中英

UTF8 encoding problem

我正在使用html文件。。我使用html清洁程序来清洁html文件,然后更改了格式(所有'e均由+®代替)...我如何在Java中更正该问题

Post some code on what you are doing. Here is an answer I got to a similar question

FileInputStream fis = new FileInputStream("filename");
BufferedReader reader = new BufferedReader(new InputStreamReader(fis, "UTF-16"));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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