mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-23 16:37:30 +00:00
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
This commit is contained in:
parent
2add02c62f
commit
86eb14b7bb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user