From 86eb14b7bbad2be6e23f36478b4f3d6a43d55dd7 Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Thu, 24 Aug 2017 10:20:14 -0700 Subject: [PATCH] Change default charset to UTF-8 This resolves #6374 where the character set is set to `CharacterSets.MIMENAME_ANY_CHARSET` but the character set being used is _actually_ UTF-8. Fixes #6374 Closes #6892 --- src/org/thoughtcrime/securesms/mms/PartParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/mms/PartParser.java b/src/org/thoughtcrime/securesms/mms/PartParser.java index e0fc12d36a..3bcaae88ed 100644 --- a/src/org/thoughtcrime/securesms/mms/PartParser.java +++ b/src/org/thoughtcrime/securesms/mms/PartParser.java @@ -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.UTF_8; if (body.getPart(i).getData() != null) { partText = new String(body.getPart(i).getData(), characterSet);