How to make Notepad to save text in UTF-8 without BOM?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a CSV file with special accents and saving it in Notepad by selecting UTF-8 encoding. When I read the file using Java, it reads the BOM characters too. So I want to save this file in UTF-8 format without appending a BOM initially in Notepad. Otherwise is there any built-in class in Java that eliminates the BOM characters that present at beginning, when reading the contents in a file? 回答1: Use Notepad++ - free and much better than Notepad. It will help to save text without BOM using Enconding > Encode in UTF-8 without BOM : When I