set MMS default characterset to utf-8.

Fixes #6374
Closes #6965
This commit is contained in:
Brian St. Pierre 2017-09-14 15:27:14 -04:00 committed by Moxie Marlinspike
parent 8d08f3969a
commit 6e6bfaa932
1 changed files with 1 additions and 1 deletions

View File

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