Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android问题中的Base64解码_Android_Encoding_Base64_Decoding_Utf8 Decode - Fatal编程技术网

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");

@铁人请检查问题代码