fffonion / fffonion/Xunlei-Fastdick
wget.sh里请求 login.mobile.reg2t.sandai.net 的返回结里带中文,导致grep部分失效
Open
can't reproduce
- Dominant language
- Python
- Stars
- 815
- Forks
- 169
- PR merge metrics
- No merged PRs in 30d
Description
这个的结果大概是这样的
```
{
"errorCode" : 0,
"userNewNo" : [迅雷ID],
"jumpKey" : "[blah bhal]",
"payName" : "商务合作付费",
"expireDate" : "[VIP过期时间]",
"sessionID" : "[sessionID]",
"userName" : "[用户名]",
"cmdID" : 2,
"platformVersion" : 1,
"isVip" : 1,
"vasType" : 4,
"account" : 138305,
"userID" : [数字],
"payId" : 801,
"isCompressed" : 0,
"sequenceNo" : 1000001,
"protocolVersion" : 101,
"nickName" : "[昵称]"
}
```
就是那个payName,是GB2312编码的,会导致grep不能获得 userID。sessionID 因为在中文之前,所以还没什么问题。
我是OS X的bash环境, LANG=en_US.UTF-8 ,可能和其它的测试环境不一样。
Contributor guide
Assessment
This issue has not been assessed yet.