fix: 增大小文本文件检测字符编码的正确率;处理并发隐患
This commit is contained in:
@ -17,7 +17,7 @@ import java.net.URISyntaxException;
|
||||
public class EncodingTests {
|
||||
@Test
|
||||
void testCharDet() throws URISyntaxException {
|
||||
for (int i = 0; i < 28; i++) {
|
||||
for (int i = 0; i < 29; i++) {
|
||||
File dir = new File(getClass().getClassLoader().getResource("testData\\" + i).toURI());
|
||||
String dirPath = dir.getPath();
|
||||
String textFileName = dir.list()[0];
|
||||
|
||||
3
server/src/test/resources/testData/28/Small GB2312
Normal file
3
server/src/test/resources/testData/28/Small GB2312
Normal file
@ -0,0 +1,3 @@
|
||||
<EFBFBD><EFBFBD>˹<EFBFBD>ٷ<EFBFBD>˹<EFBFBD>ٷ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~
|
||||
Reference in New Issue
Block a user