|
|
@ -181,8 +181,8 @@ public class Converter { |
|
|
|
* |
|
|
|
* |
|
|
|
* @throws IOException |
|
|
|
* @throws IOException |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected String detectCharset(String key, ByteArrayOutputStream bos, BufferedInputStream in, |
|
|
|
protected static String detectCharset(String key, ByteArrayOutputStream bos, BufferedInputStream in, |
|
|
|
String enc) throws IOException { |
|
|
|
String enc) throws IOException { |
|
|
|
|
|
|
|
|
|
|
|
// Grab better encoding from stream
|
|
|
|
// Grab better encoding from stream
|
|
|
|
byte[] arr = new byte[K2]; |
|
|
|
byte[] arr = new byte[K2]; |
|
|
|