fix: 增大小文本文件检测字符编码的正确率;处理并发隐患

This commit is contained in:
“yaya”
2023-10-06 16:22:32 +08:00
parent 31c7b2dfb8
commit 42cf6b2955
4 changed files with 4619 additions and 5 deletions

View File

@ -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];

View File

@ -0,0 +1,3 @@
<EFBFBD><EFBFBD>˹<EFBFBD>ٷ<EFBFBD>˹<EFBFBD>ٷ<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~