mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Small improvement
This commit is contained in:
parent
8cbfdee008
commit
fe22ed2a8b
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
class CharsetHelper {
|
||||
public class CharsetHelper {
|
||||
private static final int MAX_SAMPLE_SIZE = 8192;
|
||||
private static String CHINESE = new Locale("zh").getLanguage();
|
||||
private static final List<String> COMMON = Collections.unmodifiableList(Arrays.asList(
|
||||
|
@ -62,7 +62,7 @@ class CharsetHelper {
|
|||
}
|
||||
}
|
||||
|
||||
static Charset detect(String text) {
|
||||
public static Charset detect(String text) {
|
||||
try {
|
||||
byte[] octets = text.getBytes(StandardCharsets.ISO_8859_1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue