true
117118119120121122123124125126127
byte[] bytes = s.getBytes("ISO-8859-1"); CharsetDetector det = new CharsetDetector(); CharsetMatch m; det.enableInputFilter(true); if (!det.inputFilterEnabled()){ errln("input filter should be enabled"); } det.setText(bytes); m = det.detect();