Revert "Change default charset to UTF-8"

This reverts commit 86eb14b7bbad2be6e23f36478b4f3d6a43d55dd7.
This commit is contained in:
Moxie Marlinspike 2017-09-05 12:43:21 -07:00
parent 258910504c
commit 5cccea5846

View File

@ -24,7 +24,7 @@ public class PartParser {
String characterSet = CharacterSets.getMimeName(body.getPart(i).getCharset()); String characterSet = CharacterSets.getMimeName(body.getPart(i).getCharset());
if (characterSet.equals(CharacterSets.MIMENAME_ANY_CHARSET)) if (characterSet.equals(CharacterSets.MIMENAME_ANY_CHARSET))
characterSet = CharacterSets.UTF_8; characterSet = CharacterSets.MIMENAME_ISO_8859_1;
if (body.getPart(i).getData() != null) { if (body.getPart(i).getData() != null) {
partText = new String(body.getPart(i).getData(), characterSet); partText = new String(body.getPart(i).getData(), characterSet);