Commit 52ff4ec 1 parent 43c1576 commit 52ff4ec Copy full SHA for 52ff4ec
File tree 1 file changed +4
-4
lines changed
src/org/thoughtcrime/securesms/mms
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,17 +79,17 @@ private static PduPart getPartForMessage(String message) {
79
79
PduPart part = new PduPart ();
80
80
81
81
try {
82
- part .setData (message .getBytes (CharacterSets .MIMENAME_ISO_8859_1 ));
83
-
82
+ part .setData (message .getBytes (CharacterSets .MIMENAME_UTF_8 ));
83
+
84
84
if (part .getData ().length == 0 )
85
85
throw new AssertionError ("Part data should not be zero!" );
86
86
87
87
} catch (UnsupportedEncodingException e ) {
88
88
Log .w ("TextSlide" , "ISO_8859_1 must be supported!" , e );
89
89
part .setData ("Unsupported character set!" .getBytes ());
90
90
}
91
-
92
- part .setCharset (CharacterSets .ISO_8859_1 );
91
+
92
+ part .setCharset (CharacterSets .UTF_8 );
93
93
part .setContentType (ContentType .TEXT_PLAIN .getBytes ());
94
94
part .setContentId ((System .currentTimeMillis ()+"" ).getBytes ());
95
95
part .setName (("Text" +System .currentTimeMillis ()).getBytes ());
You can’t perform that action at this time.
0 commit comments