|
|
@ -1939,8 +1939,15 @@ public class MessageHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Charset detected = CharsetHelper.detect(result);
|
|
|
|
Charset detected = CharsetHelper.detect(result);
|
|
|
|
if (!(StandardCharsets.US_ASCII.equals(detected) &&
|
|
|
|
if (c.equals(detected))
|
|
|
|
StandardCharsets.UTF_8.equals(c)))
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StandardCharsets.US_ASCII.equals(detected) &&
|
|
|
|
|
|
|
|
("windows-1252".equals(c.name()) ||
|
|
|
|
|
|
|
|
StandardCharsets.UTF_8.equals(c) ||
|
|
|
|
|
|
|
|
StandardCharsets.ISO_8859_1.equals(c)))
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
if (BuildConfig.PLAY_STORE_RELEASE)
|
|
|
|
if (BuildConfig.PLAY_STORE_RELEASE)
|
|
|
|
Log.w("Converting detected=" + detected + " meta=" + c);
|
|
|
|
Log.w("Converting detected=" + detected + " meta=" + c);
|
|
|
|
else
|
|
|
|
else
|
|
|
|