The Wayback Machine - http://web.archive.org/web/20200705235920/https://github.com/topics/wechat-sdk
Skip to content
#

wechat-sdk

Here are 147 public repositories matching this topic...

微信公众平台SDK Senparc.Weixin for C#,支持.NET Framework及.NET Core。已支持微信公众号、小程序、小游戏、企业号、企业微信、开放平台、微信支付、JSSDK、微信周边等全平台。 WeChat SDK for C#.

  • Updated Jun 28, 2020
  • C#
cnpmge
cnpmge commented Apr 14, 2020

Please read and follow the issue templates:

  1. Bug Report or Documentation Issue or Questions and Help?

  2. Which react-native-wechat version are you using?

  3. What platform does your issue occur on? (Android/iOS/Both)

  4. Please provide a clear and concise description of what the bug is as precisely as possible,you can:

  1. post a screenshot to explain in which case you get the i
observerss
observerss commented Nov 1, 2017

重现步骤 (Reproducing)

wx = WeChatClient(appid, appsecret)
wx.material.add('image', '中文图片.jpg')

问题实质

问题的实质是微信服务器端在解析multipart时不支持rfc2231格式的编码,而requests包发送的正是这种格式。

在文件名是中文时,比如"中文.jpg",

  • requests请求的数据是 filename*=utf-8''%E4%B8%AD%E6%96%87.jpg
  • 而curl请求的数据是 filename="\\344\\270\\255\\346\\226\\207.jpg"

Workaround

我暂时的workaround是monkey patch编码部分

Improve this page

Add a description, image, and links to the wechat-sdk topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the wechat-sdk topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.