BOM1 Removing BOM in Java 참조 : http://www.rgagnon.com/javadetails/java-handle-utf8-file-with-bom.htmltext 파일을 다루다보면 가끔 BOM까지 문자열로 찍힐때가 있다.보통 utf8 이나 utf16을 사용하므로 본인은 아래의 클래스를 사용하여 BOM을 제거하였다.utf32에 대한 BOM을 제거하려면 위의 참조링크를 참조한다.123456789public class StringUtil { public final static String UTF16_BOM = "\uFEFF"; public static String removeUTF16BOM(String input) { if( input.startsWith(UTF16_BOM) ) { input = input.substring(1).. 2013. 4. 29. 이전 1 다음