微信文件传输助手网页版中文编码问题

chenliang0571:

请问有人知道这里的原始中文编码是什么? 如何解码?

json 返回的字符串

1
2
3
4
流畅轮廓、精致细节和自由律动,糅合呈现#TODS2023秋冬 男士系列。
#TodsTheItalianPortrait

创意总监:Walter Chiapponi

实际内容

1
2
3
4
流畅轮廓、精致细节和自由律动,糅合呈现#TODS2023 秋冬 男士系列。
#TodsTheItalianPortrait

创意总监:Walter Chiapponi

询问了几个 AI, 基本都建议这样解码:

1
2
3
4
5
6
7
8
const iconv = require('iconv-lite');
const garbledText = "流畅轮廓、精致细节和自由律动,糅合呈现#TODS2023秋冬 男士系列。\n#TodsTheItalianPortrait\n\n创意总监:Walter Chiapponi";
const buf = Buffer.from(garbledText, 'binary');
// const decodedText = iconv.decode(buf, 'windows-1252');
// const decodedText = iconv.decode(buf, 'latin1');
// const decodedText = iconv.decode(buf, 'gbk');
const decodedText = iconv.decode(buf, 'utf-8');
console.log(decodedText);

但是实际输出是这样的, 只有小部分内容被解码:

1
2
3
4
流�"&轮�㬁精�!�� �`�R�!����9�`��R�&�����}�#TODS2023�9� � ��士系���
#TodsTheItalianPortrait

��:��欻�:�aWalter Chiapponi

request url

https://filehelper.weixin.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=9jOOuKz7HAavYjQY&skey=%40crypt_f9b8121a_46a00ef5be0a151552b6da4e4a72d526&pass_ticket=Pr31qvGLTC%252FORqib4BZsCAhorw3BuGqE1br%252FNUxuFFQSjJKCW5AJlqsth2T3UdkxflKlNmfUnuEQXEBe%252FE8mcQ%253D%253D

response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"BaseResponse": {
"Ret": 0,
"ErrMsg": ""
},
"AddMsgCount": 1,
"AddMsgList": [
{
"MsgId": "100930987469004064",
"FromUserName": "@c4dcd4010dc50e5ee03f32ae786701de",
"ToUserName": "filehelper",
"MsgType": 1,
"Content": "流畅轮廓、精致细节和自由律动,糅合呈现#TODS2023秋冬 男士系列。#TodsTheItalianPortrait创意总监:Walter Chiapponi",
"Status": 3,
"ImgStatus": 1,
"CreateTime": 1740397130,
"VoiceLength": 0,
"PlayLength": 0,
"FileName": "",
"FileSize": "",
"MediaId": "",
"Url": "",
"AppMsgType": 0,
"StatusNotifyCode": 0,
"StatusNotifyUserName": "",
"RecommendInfo": {
"UserName": "",
"NickName": "",
"QQNum": 0,
"Province": "",
"City": "",
"Content": "",
"Signature": "",
"Alias": "",
"Scene": 0,
"VerifyFlag": 0,
"AttrStatus": 0,
"Sex": 0,
"Ticket": "",
"OpCode": 0
},
"ForwardFlag": 0,
"AppInfo": {
"AppID": "",
"Type": 0
},
"HasProductId": 0,
"Ticket": "",
"ImgHeight": 0,
"ImgWidth": 0,
"SubMsgType": 0,
"NewMsgId": 100930987469004064,
"OriContent": "",
"EncryFileName": ""
}
],
"ModContactCount": 0,
"ModContactList": [],
"DelContactCount": 0,
"DelContactList": [],
"ModChatRoomMemberCount": 0,
"ModChatRoomMemberList": [],
"Profile": {
"BitFlag": 0,
"UserName": {
"Buff": ""
},
"NickName": {
"Buff": ""
},
"BindUin": 0,
"BindEmail": {
"Buff": ""
},
"BindMobile": {
"Buff": ""
},
"Status": 0,
"Sex": 0,
"PersonalCard": 0,
"Alias": "",
"HeadImgUpdateFlag": 0,
"HeadImgUrl": "",
"Signature": ""
},
"ContinueFlag": 0,
"SyncKey": {
"Count": 14,
"List": [
{
"Key": 1,
"Val": 940546031
},
{
"Key": 2,
"Val": 897439235
},
{
"Key": 3,
"Val": 940546023
},
{
"Key": 11,
"Val": 940546048
},
{
"Key": 19,
"Val": 44482
},
{
"Key": 23,
"Val": 1740396794
},
{
"Key": 24,
"Val": 1740397130
},
{
"Key": 25,
"Val": 897439235
},
{
"Key": 27,
"Val": 308443
},
{
"Key": 201,
"Val": 1740397130
},
{
"Key": 203,
"Val": 1740396590
},
{
"Key": 206,
"Val": 101
},
{
"Key": 1000,
"Val": 1740395520
},
{
"Key": 1001,
"Val": 1740395522
}
]
},
"SKey": "",
"SyncCheckKey": {
"Count": 14,
"List": [
{
"Key": 1,
"Val": 940546031
},
{
"Key": 2,
"Val": 897439235
},
{
"Key": 3,
"Val": 940546023
},
{
"Key": 11,
"Val": 940546048
},
{
"Key": 19,
"Val": 44482
},
{
"Key": 23,
"Val": 1740396794
},
{
"Key": 24,
"Val": 1740397130
},
{
"Key": 25,
"Val": 897439235
},
{
"Key": 27,
"Val": 308443
},
{
"Key": 201,
"Val": 1740397130
},
{
"Key": 203,
"Val": 1740396590
},
{
"Key": 206,
"Val": 101
},
{
"Key": 1000,
"Val": 1740395520
},
{
"Key": 1001,
"Val": 1740395522
}
]
}
}