Groups
Groups
Sign in
Groups
Groups
wdk_api
Conversations
About
Send feedback
Help
解决roomid和nick带中文验证不能通过
0 views
Skip to first unread message
戴路
unread,
Dec 10, 2007, 2:16:12 AM
12/10/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wdk_api
1 原因
flash会对中文进行重新编码,从而vc里面md5和flash里面md5的计算结果不一致。
2 解决方法
对于中文进行编码,采用url的编码算法。将一个中文字改为"%数字%数字"表示,这样,对于rul编码的md5就一致了。
3 步骤
首先,在OnFlashReady里,拼接得到认证串,在进行md5之前,调用函数URLEncode
然后对URLEncode的结果进行md5.
其他步骤不变
Reply all
Reply to author
Forward
0 new messages