用base64解码以后得到的是乱码怎么办

是这样的 我发送了一个个体请求 服务器给我的响应是一个json 其中有一个明显是用base64加密后的结果 于是我就用base64解密 本来结果应该是中文字符串的 但是我这边显示的却是乱码 请问是为什么 是还作了什么处理吗?我得到的base64加密后的结果如下

44PN44PN6YJx57dv6Vzl55+g5L+E55Jy5cv+6Mh25Yzk77lZ5nnP5MPZ5cdK5nFp5Yvg6Yrm6YrQ55dR54Te57X+54T177lZ57dv6Vzl57Fa6Yde55dh6XTw5bdX6nhL5blE6Yde5c2D77lZ5Lh+5LhF5Lr65clN5n6Z576B55dR5d+H5Y6Y44PPCTWlYm7wtVQwtVQyaXwbi5abe7UxheexhLibu7CazbGbhdizaMQxh6KycWoiiVmycoabi5wzv6KzaVazy6Qyw6/zwWUyvMGazbGyeeacbcmwtVV8LaViChBNtBBNtBzgyBzfiBv6d+nqxBBNtwkvpv8+44PN44PN5nFc5Y2/6M2v5n2H44PPCTWlYm7wtVQwtVQbe7GazbGyfYUzzX/bi5aac43ycoCxheeyxXsiiW88LaViChBNtBBNtBJCdhF4wrv/u++8wBv/zrnLe+F4tBnpgrvhdrF6hhznihF7crzqbBv/xrrnuBJ4chJVhhrBd+rEfB+8wBngcBnKghngcBJVh+Jyhrv6d+F4vhnIb+JCxrJUhh+8wBvhdrF6hhJ/t+nQvhvQuhnVzBrnuBrSahnjyBBNtwkvpv8+44PN44PN6LXw5L+Z6WJ05MPe5crt5oP95bPF5bFC55dR576B55l477lZ55hi552N5dTZ5YvX5cTT5cF+55dR5YvN5nPT5Yvp6XJ/44PPCTWlYm7wtVQwtVQyu6QyiXQyz73czLKcx7obbLmxhV3beeQyxV3ch5UywnUwtVV8LaViChBNtBBNtBF4tBnlx+JDuBJoirv6d+F7irvitrJFwBnXcBrSc+BNtwkvpv8+44PN44PN5YvN5Yvd55lY5Yl85czh6LPn55dR6MBp6YFb5MBb5n2D44PPCTWlYm7wtVQwtVQzaVQyxV7ycoaaz67yuLabxY3yaXwiiVmxhVQyiXQy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NtBJyf+vgchrphBJgxBzUwBJixhJSvrzKdhrQtr+8wBv/urzNa+F7whJ6c+F9wrF4vhv1g+v6d++8wBJCwBrphBJDd+rSahJpfBv1fBJDxrJ5gBv9h+F6hh+8zhXNaBF9bBrnuBvQuhJgxBniyBnVxrnQf+vkbrF4erJxc+J+y+JxzhBNthXNaGkvpv8+44PN44PN5cvB5cvB55lY5Lvj6Y2z5L6v6LrZ5clW6X2z5n+s77lZ56hs54F26Y+L5cJv55Fb6Y+M56rA6VPO5b6W54zM55dR6ndK5cli77lZ5Y2I5d2v5cvi6VBT5nFa5LlS5nFc6VPZ5YvH5bFn6XPv6Vrm5c6O77lOCTWlYm7wtVQwtVQvtWmzwnUbgoszanKwtVYvtW3yhoGbioixheezfdUaxVoxiWeycoCbenoiiVmye7ach4Gze5izg6Uzg6Ube7GctMCiiVmyw6CyxYizzX/xhV3yeeaain7aycUazbGyxo3xh6GwtVV8LaViChBNtBBNtBXNaBF9bBXNchXNchXNarz7uBniz+Jxc+nNxhBNtwkvpv8+44PN44PN4bPp562W5YvN5YvY77lO4bPqCTWlYm7wtVQwtVQycoCbenobuYwbvoYzzV7zzY7yw5wxhboiiVmycoaadbUauYoyiX/buoQzwnUbgosxhVQzfcCcxc7acnwiiVmyxLoyxLoazbGbe7GctMCiiWevtWmbi5axhcivtXovtXobi5axhcizeXsyuLCzzX/aaW/azbGvtXovtXovtW0wVlZwVj==

1个回答

我现在觉得 服务器那边应该是将中文字符串压缩了 然后在用base64加密然后传输给我的 所以我解码以后 是不是应该再解压?

xiaowang8dawang
迪迪wang 我也遇到一样的问题。无论怎么解码都是乱码。最后解决了,需要解码解压。解决办法看链接:https://blog.csdn.net/L15810356216/article/details/80280993#commentBox
大约一个月之前 回复
qiudaifei
不懂_budong 请问这个问题解决了吗?
7 个月之前 回复
weixin_40650670
weixin_40650670 回复007Detective: 。。最近自己做爬虫你懂的,没法问只能自己想办法破解,这种东西应该是前端解密或者解压,但是我看了半天他前端的js也没看出来什么东西
接近 2 年之前 回复
d007letian
007Detective 这个你应该问一下服务端的开发啊,问问他们怎么处理的
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
base64解码出现乱码
用base64加密内容,当用base64解码的时候出现以字母开头的乱码,比如:TC4guN69ww==解出来的乱码是 L. 皋矫 rn
BASE64解码出现乱码
[code=C#]rn /*--- 初始值 ---*/rn string str = "UYE6nBdgkaV1uxZPzyIG5BYZmVvDl29tIvmp4XxWBsVxsw++yNwi86pYO/Wa8Kb7yMa8SueJA1Md8rDOlLGiSi/qSuJZ/lz/zM6lqpDvZgCjXSwFfcgoZJgZAFFxGOHjqBzOlp5k/WnG+9JJO20ROoF2a5lLhKXa509H6Mk4YUY=";rnrn /*--- 解码 ---*/rn string str2=System.Text.Encoding.Default.GetString(Convert.FromBase64String(str));rn /*--- str经过Base64解码后是乱码,后来用gb2312和utf-8编码方式来解码还是乱码 ---*/rn str2 = System.Text.Encoding.GetEncoding("gb2312").GetString(Convert.FromBase64String(str));rn str2 = System.Text.Encoding.GetEncoding("utf-8").GetString(Convert.FromBase64String(str));rnrn /*--- str经过Base64解码后还是乱码 ---*/rnrn[/code]rnrn有没有什么解决办法呢?rnrnrn
解决乱码BASE64解码
我利用C#读取POP3邮件服务器中的邮件头,我在WEB里显示邮件主题和收件人时是些乱码,我想把这些乱码转成能读懂的字符,请问那位大狭帮我解决一下这个问题啊?谢谢啊
Base64解码Base64解码
Base64解码Base64解码Base64解码Base64解码Base64解码
base64解码后乱码的问题
请问为何对一份HTML邮件解码后出现rnǔ鹿谟ⅲ?/font>rn端哂谩?/span>rn核 ?人:rn等乱码,请问如何解决?rn函数如下rn private string deCodeB64(string strSrc)rn rn tryrn rn if(strSrc!="")rn rn byte[] by=Convert.FromBase64String(strSrc);rn strSrc=Encoding.Default.GetString(by);rn rn rn catch(Exception ex)rn return ex.ToString();rn return strSrc;rn
用位域进行base64 的解码;
#include #include #define OK 1 #define ERROR_INPUT 0 struct fun {  unsigned char a:6;  unsigned char b:2;  unsigned char c:4;  unsigned char d:4;  unsigned char e:2;  unsigned char f:6; };
Base64解码
项目的log里有很多上传文件后的base64编码的字符串,想把它解码为原来的文件。 [code="python"] import base64 with open('c:/excelText.txt','r') as f1: s = f1.read() b = base64.decodebytes(bytes(s,encoding='UTF-8')) wit...
base64解码
rn“我的祖国”----base64---> ztK1xNfmufo=rnrn“おはよう”----base64---> pKqkz6TopKY=rnrnrn以上的base64存放在string中,如何解码才能让中文和日文在string中正常显示、输出到winform中呢?rnrnrn
Base64的解码?
为什么在Delphi6里提供Base64Encode函数而没有相关的解码函数。还是我没有找到,忘指教。
base64 解码
/wEPDwULLTExNDgzODY2MzkPZBYCAgMPZBYEAgMPZBYUZg9kFgICBQ8WAh4HVmlzaWJsZWdkAgEPFgIfAGhkAgIPFgIfAGcWBgIBDxYCHwBnZAIDDxYCHwBnZAIFDxYCHwBnZAIDDxYCHwBnFgYCAQ8WAh8AZ2QCAw8WAh8AZ2QCBQ8WAh8AZ2QCBA8WAh8AZ2QCBQ8WAh8AZxYEAgEPFgIfAGdkAgMPFgIfAGdkAgYPFgIfAGcWBAIBDxYCHwBnZAIDDxYCHwBnZAIHDxYCHwBnFggCAQ8WAh8AZ2QCAw8WAh8AZ2QCBQ8WAh8AZ2QCBw8WAh8AZ2QCCA8WAh8AZxYEAgEPFgIfAGdkAgMPFgIfAGdkAgkPFgIfAGcWCgIBDxYCHwBnZAIDDxYCHwBnZAIFDxYCHwBnZAIHDxYCHwBnZAIJDxYCHwBnZAIRDxYCHgtfIUl0ZW1Db3VudGZkZMeEYAYWTq5WZERLpVErIC9+bEwxiSsyS7UtDEBzwOTZrn请问这个是 base64位的,怎么解码,我有解了一些 但是中文全部是乱码?rn这是 asp.net 的 __VIEWSTATE 中的数据
关于base64解码出现乱码的问题
![图片说明](https://img-ask.csdn.net/upload/201512/09/1449660462_97707.png)n如图。此程序是网上下载的,之前一直可以用n今天突然出现意外,当主函数传进来一个加密的串,解析之后会多出一部分多余的代码,而前面部分可以正常打开,是一个完整链接。但是直接定义好字符串就不会出现这种问题,求分析原因n不存在没有memset的buf
perl Base64 邮件解码 乱码 问题
http://maclife.net/tools/base64/ 是一个在线解码网址 其中有设置字符集 Charse 后面发现自己的MIME::Base64解码后总显示乱码的问题原因是 use Encode; use utf8; use MIME::Base64; charset=GB2312的 需要$dec = decode("GBK",$dec); charset...
Python 解码Base64 得到码流格式文本
# coding:utf8 import base64 def BaseToFlow(): while True: str = input("Please input src: ") flag = input("Please input Decode - 1 or Encode - 2: ") if str == "": ...
CHtmlView::GetSource()得到乱码怎么办?
用GetSource()取html文本,发现有的网站的汉字会变成乱码(英文的内容正常),但有的又不会,比如下面的是我取出的两个网页html中的title部分:rnrn1.rn 骞垮窞浣忔埧鈥曞嚭绉熸埧銆佷簩鎵嬫埧銆佹柊鎴匡紝閰疯鐢熸椿鎼滅储rnrn2.rn 广州视窗::潮流广州 视窗尽现::rnrn 怎么会有的正常有的乱码?应该怎样弄才全部正常?
用struts提交的表单数据是乱码怎么办
用struts提交的表单数据是乱码怎么办
为什么得到的是乱码?
程序如下:(为了方便,就用VB来演示) rn  dim http as new XMLHTTP rn dim url as string rn url="http://www.xxxx.com" rn http.open "GET",url,false,"","" rn http.send rn msgbox http.responsetext rn rn现在http.responsetext的结果如下:[这个网站它有三种版本,简体中文,繁体上文,英语],为什么它有这么多的乱码?而我用IE浏览器看此同一URL地址的话却是中文简体。rn问题有2:rn 1:为什么我在程序中是乱码?rn 2:在程序中我是如何保存一个网页?rn急!!!!rnrnrn ???y????/title>rn rn
为什么得到的是乱码?
rnrnrn先声名只是为了学习 才写的阿 可是我的到的为什么是乱码呢? rnrnrnrnPROCESSENTRY32 pe32;//...rn pe32.dwSize=sizeof(pe32);//..rn BOOL bMore = 1;rn HANDLE hProcessSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);//...rn if(hProcessSnap==INVALID_HANDLE_VALUE)//...rn rn MessageBox("df");rn rn while(bMore)rn rn bMore=Process32Next(hProcessSnap,&pe32);//...rn if( strcmp( "QQ.EXE", pe32.szExeFile)==0 )rn rn rn DWORD id=pe32.th32ProcessID;rn CString strID;rn strID.Format("qq进程id=%d",id);rn m_list.AddString(strID);rn HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, false,id) ;rn strID.Format("进程句柄=%d",hProcess);rn m_list.AddString(strID);rn //LPSYSTEM_INFO *lpSystemInfo=new LPSYSTEM_INFO;rn SYSTEM_INFO sysInfo;rn GetSystemInfo(&sysInfo);rn CString s;rn s.Format("%d",sysInfo.lpMinimumApplicationAddress);rn SetDlgItemText(IDC_EDIT1,s);rn s.Format("%d",sysInfo.lpMaximumApplicationAddress);rn SetDlgItemText(IDC_EDIT2,s);rnrn int int_min=GetDlgItemInt(IDC_EDIT1);rn int int_max=GetDlgItemInt(IDC_EDIT2); rn rn MEMORY_BASIC_INFORMATION lpBuffer;//rn while(int_min
用opendialog->filename得到的是乱码
我用opendialog->filename想得到文件名,但出现的是乱码,怎么办???rn以前有篇文章有讲到,现在那篇文章打不开了。rn高手帮帮忙
base64编码与解码
base64编码与解码,vc++编写,MFC界面
Base64编码、解码
完成Base64的编码解码过程、使得在网络传输过程中不至于出现不可处理的乱码。
Base64解码工具
Base64解码工具(149K),解码,转码工具。
Base64编码和解码字符串
闲来无事用C++写了一个Base64编码和解码的小程序 Base64.h #ifndef _BASE64_H #define _BASE64_H /* Base64是一种基于64个可打印字符来表示二进制数据的表示方法,从本质上看Base64编码就是将三字节转四字节。 如果数据的长度不是3的整数倍,就要在后面补0再计算,每补2个0就再Base64串后加上1个‘=’。 Base64的不足之处
sun base64解码实现
博文链接:https://balaschen.iteye.com/blog/89111
Base64的转码与解码(Java1.8)
Java1.8 base64编码和解码
JS Base64编码/解码
例:javascript<br>/*<br> * Base64编码/解码<br> * 例:<br> * var obj=new Base64();<br> * var de=obj.Encode64("我的网站啊好");<br> * var En=obj.Decode64(de);<br> */
base64文件解码
$str = str_replace(' ', '+', $str); //替换空字符串为+ $str = str_replace('\n', '',$str); //置空换行符 $str = str_replace('\t', '',$str); $str = str_replace('\r', '',$str); $str = stripslashe
base64编码和解码
1:Base64存在的意义: 关于base64存在的意义在维基上是这么说的 Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 repres
Base64解码、编码python
#!usr/bin/python3 import base64 str='ab' c=base64.b64encode(str.encode()).decode() print(c) str2=b'YWI=' d=base64.b64decode(str2.decode()).decode() print(d)
javaSE 控制台 base64解码
用JDK中的base64类实现。package mypackage; import java.io.UnsupportedEncodingException; import java.util.Base64; import java.lang.String; import java.util.Scanner; public class ToBase64 { public static ...
Base64解码的问题
我在Asp中调用WebService服务,得到一个经过Base64编码的XML文件,但是rn我在Asp中解码之后,Response.write写不出来,写入文件看,内容也只有一部分rn对,其它是乱码。解码的程序是从网上copy的,应该没问题,就是对接收到的rn字符串进行解码操作。
base64解码的相关问题
小弟我写了个截取SMTP数据包的程序rn 当邮件里面有中文的时候发现中文那些数据被base64加密了!rn所有我就自己写了个解密的东西!rn 但是程序却输出不了原来的汉字------的的的的的rn所以我把程序晒一下各位高手帮忙看下!rnrn#include "iostream"rn#include "string"rn#include "vector"rnusing namespace std;rnvoid encode(char* p);rnint table(char c_str); //根据base64表,由字符得到的十进制数rnvector ch_end; //根据上面得到的十进制数,得到原型rnvoid reduction(char a, char b,char c,char d,char* x,char* y,char* z);rnvoid printf_base64();rnvoid main()rnrn char ch[] = "Subject: =?gb2312?B?tcS1xLXEtcS1xA==?="; //从B?之后就是base64数据了一直到?=rn char *p = &ch[20];rn if((*(p-1) == 0x3f) && (*(p-2) == 0x42) && (*(p-3) == 0x3f))rn rn encode(p);rn rn rnrnrnvoid encode(char* p) rnrn int mark = 4;rn while(1)rn rn int i = 3; //表示取几个字符rn char a=*p,rn b=*(p+1),rn c=*(p+2),rn d=*(p+3); //得到编码后的4个字符用于得到编码前的3个字符rn char x ,y ,z ; //编码前的3个字符rn char *xx ,*yy ,*zz;rn xx = &x;rn yy = &y;rn zz = &z;rn if(c == '=' && d == '=')rn rn i = 1; //如果有2个等号那么就取转换后的1个字符rn a = table(a);rn b = table(b);rn c = 0x000000;rn d = 0x000000;rn else if(c != '=' && d == '=')rn rn i = 2; //如果有1等号那么就取转换后的2个字符rn a = table(a);rn b = table(b);rn c = table(c);rn d = 0x000000;rn else if(c != '=' && d != '=')rn rn a = table(a);rn b = table(b);rn c = table(c);rn d = table(d);rn rn ////////////////////////rn reduction(a,b,c,d,xx,yy,zz); //4变3rn ////////////////////////rn if(i == 3)rn rn ch_end.push_back(x);rn ch_end.push_back(y);rn ch_end.push_back(z);rn p+=mark;rn else if(i == 2)rn rn ch_end.push_back(x);rn ch_end.push_back(y);rn p+=mark;rn break;rn else if(i == 1)rn rn ch_end.push_back(x);rn p+=mark;rn break;rn rn rn printf_base64();rnrn//根据base64表得到十进制数rnint table(char c_str)rnrn int flag;rn c_str; rn if('a'<=c_str && 'z'>=c_str)rn rn flag = c_str-'a'+26;rn return flag;rn else if ('A'<=c_str && 'Z'>=c_str)rn rn flag = c_str-'A';rn return flag;rn rn switch (c_str)rn rn case '0': flag = 52;break;rn case '1': flag = 53;break;rn case '2': flag = 54;break;rn case '3': flag = 55;break;rn case '4': flag = 56;break;rn case '5': flag = 57;break;rn case '6': flag = 58;break;rn case '7': flag = 59;break;rn case '8': flag = 60;break;rn case '9': flag = 61;break;rn case '+': flag = 62;break; rn case '/': flag = 63;break; rn rn rn return (char)flag;rnrn//4个字节还原成3个字节rnvoid reduction(char a, char b,char c,char d,char* x,char* y,char* z) rnrn *x = a<<2 + (b<<2)>>6;rn *y = b<<4 + (c<<2)>>4;rn *z = c<<6 + (d<<2)>>2;rnrnvoid printf_base64() // 打印出原汉字rnrn for(vector::size_type i = 0;i != ch_end.size(); ++i)rn rn cout<
base64解码问题???
下面这一段rnrnu7bTrcq508MgR29vZ2xlINXKu6eho9KqvKS77sT6tcTVyrunsqLR6dakxPq1xLXn19PTyrz+tdjW\r\nt6Osx+u147v30tTPwsG0vdOjug0KDQpodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vVkU/c2Vy\r\ndmljZT1jbCZjPUNOV2k3UERfNHREVzVRRVEwNFg5cTllQmdwTmYmaGw9emhfQ04NCg0KKioq16LS\r\n4ioqKsfrtPLTobTL0rPB9Nf3vMfCvKGjyOe5+8T6yqfIpcHL1cq7p7fDzsrIqM/eo6jA/cjno6zI\r\n57n7xPrN/LzHwcvTwyANCrunw/u78sPcwuujqaOsvs3Q6NKq08O1vdHp1qTBtL3ToaMNCg0KyOe5\r\n+8T6tO3K1cHLtMvTyrz+o6y/ycTcysfG5Mv708O7p86qwe3Su7j2tefX09PKvP612Na3tLS9qNXK\r\nu6fKsc7zyuTI68HLxPq1xCANCrXn19PTyrz+tdjWt6GjyOe5+8T6sru147v30enWpMG0vdOjrM+1\r\nzbO+zbK7u+G8pLvuuMPVyrunoaMNCg0KyOe5+8T6w7vT0Mfrx/O0y7Xn19PTyrz+o6y1q772tqjK\r\nudPDu/LJvrP9tMvVyruno6y+zdDo0qrPyLfDzsrS1M/CzfjWt8rkyOvE+iANCrXEtefX09PKvP61\r\n2Na30tTW2NbD1cq7p8Pcwuujug0KaHR0cHM6Ly9hY2NvdW50cy5nb29nbGUuY29tL1JlY292ZXJB\r\nY2NvdW50oaMNCg0KyOe5+7Xju/fS1MnPwbS908O709C3tNOmo6zH672ruMPN+Na3uLTWxrKi1bPM\r\n+bW90MK1xOSvwMDG97Swv9rW0KGjDQoNCrTL1sINCkdvb2dsZSDVyrun0KHX6b60yc8NCg0Kx+vX\r\notLio6y4w7Xn19PTyrz+tdjWt7K7xNy908rcu9i4tNPKvP6ho9KqveK+9s7KzOK7rn8sHLveLE+tXK\r\nu6e1xM/qx+mjrMfrt8POyiANCs7Sw8e1xLDv1vrW0rnrnrn放到网上的一些解码工具他能够解出来。。。rn但是rnConvert.FromBase64String(base64Encoded);rn老是报无效的字符串长度,我知道可能是这段编码中有 \r\n 但是把他们替换成“没有”也不行,那些解码工具他们怎么做到的~~~rn
base64解码实例
base64解码实例
Base64编码/解码
作者:韩梦飞沙 QQ:313134555 Base64编码/解码
Android端Base64编码与解码
Android对uid进行base64加密与解密(编码与解码)
BASE64编码与解码
实现方式: * 1.jdk7及以下自带的sun.misc.* * 2.jdk8自带的java.util.Base64; * 3.外界的包commons-codec-1.5.jar1.jdk8java.util.Base64工具类提供了一套静态方法获取下面三种BASE64编解码器: 1)Basic编码 2)URL编码 3)MIME编码 2.jdk7及以下BASE64编解码器
js base64编码与解码
我们可以用btoa来进行编码,用atob来进行解码,注意,低版本浏览器可能不支持 var str = &quot;China,中国&quot;; window.btoa(window.encodeURIComponent(str)) //&quot;Q2hpbmElRUYlQkMlOEMlRTQlQjglQUQlRTUlOUIlQkQ=&quot; window.decodeURIComponent(window.atob('...
base64转码、解码
最近有业务需要使用base64转码,现在整理一下 转码 window.btoa 解码 window.atob 示例 window.btoa("test") // dGVzdA== window.atob("dGVzdA==") // test 如果字符串中包含中文,直接使用btoa会报错,可以先使用encodeURIComponent进行编码 window.btoa(window.en...
base64解码工具
快捷方便的base64解码工具。在做PKI相关开发的时候,需要经常进行base64编码 解码。
base64 编码 解码 小工具
做个base64 小工具 给大家提供一些帮助 该工具支持文件加密解密
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview