enjoy 4.4 release ^_^
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.jfinal.template.io;
|
||||
|
||||
import java.nio.charset.MalformedInputException;
|
||||
// import java.nio.charset.MalformedInputException;
|
||||
|
||||
/**
|
||||
* Utf8Encoder
|
||||
@@ -62,12 +62,16 @@ public class Utf8Encoder extends Encoder {
|
||||
if (Character.isLowSurrogate(d)) {
|
||||
uc = Character.toCodePoint(c, d);
|
||||
} else {
|
||||
throw new RuntimeException("encode UTF8 error", new MalformedInputException(1));
|
||||
// throw new RuntimeException("encode UTF8 error", new MalformedInputException(1));
|
||||
bytes[dp++] = (byte) '?';
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (Character.isLowSurrogate(c)) {
|
||||
throw new RuntimeException("encode UTF8 error", new MalformedInputException(1));
|
||||
// throw new RuntimeException("encode UTF8 error", new MalformedInputException(1));
|
||||
bytes[dp++] = (byte) '?';
|
||||
continue;
|
||||
} else {
|
||||
uc = c;
|
||||
}
|
||||
|
Reference in New Issue
Block a user