[java]處理utf-8 bom字符串的bom頭

char[] bomChar = "帶bom的字符串".toCharArray();//轉爲char數組 char[] noneBomchar = new char[bomChar.length - 1];//數組第一個元素是bom頭,去掉它 for (int j = 0; j < noneBomchar .length; j++) { noneBomchar [j] = bomChar[j +
相關文章
相關標籤/搜索