android问题中的Base64解码
通过使用此编码过程,我已从服务器接收到解码android问题中的Base64解码,android,encoding,base64,decoding,utf8-decode,Android,Encoding,Base64,Decoding,Utf8 Decode,通过使用此编码过程,我已从服务器接收到解码字符串 data = System.Text.Encoding.UTF8.GetBytes (text); text = System.Convert.ToBase64String (data); 在我的android应用程序中,我们使用 byte [] data = Base64.decode(base64data,Base64.DEFAULT); String text1 = new String (data, "UTF-8"); 但当我
字符串
data = System.Text.Encoding.UTF8.GetBytes (text);
text = System.Convert.ToBase64String (data);
在我的android应用程序中,我们使用
byte [] data = Base64.decode(base64data,Base64.DEFAULT);
String text1 = new String (data, "UTF-8");
但当我们将此设置设置为文本视图时,它不会显示格式化
谢谢……在设置文本之前使用它
text1 = text1.replaceAll("[\n\r]", "WRAP");
text1 = text1.replaceAll("WRAP", "\n\r");
@铁人请检查问题代码