Comments (9)
没理解啥问题?这个工具只是把传入的字符串参数转成utf8编码的bytes数组,传入啥字符串,最后提交给后台也是啥字符串。解析和显示是外部代码的事情,跟这个工具应该没有关系。
from wx-formdata.
比如微信小程序传入😀表情,后端接收原样打印出来却是“😀�”
from wx-formdata.
问题已修复,拉取最新代码试试
from wx-formdata.
谢谢大佬
from wx-formdata.
现在文本、emoji,和文件一起上传,会出现部分内容乱码
from wx-formdata.
如果没有文件则不会出现这个问题
from wx-formdata.
from wx-formdata.
我这边也是这样,但是后台接到的数据是对的,你看下后台接到的数据是不是乱码。
from wx-formdata.
后端接收到的数据确认没有问题,谢谢作者大佬
from wx-formdata.
Related Issues (11)
- 关于小程序文件上传问题的请教 HOT 10
- 是否可以用 TextEncoder 类去实现 toUtf8Bytes 函数? HOT 4
- 一个字段里添加多个文件好像行不通呀.... HOT 2
- 上传文件超过大约70M时,会报RangeError: invalid array length,大概是内存超了,有什么解决办法吗
- 考虑发布一个npm包吗? HOT 1
- 这个项目太棒了!不过遇到了一些小问题 HOT 3
- 上传文件只传了一部分 HOT 2
- 调用appendFile方法文件名会变成一串ID,建议用wx.chooseMessageFile返回的原始文件名 HOT 1
- 作者你好,我改了一版ts的放gitee上了,如有问题请联系我 HOT 1
- 你好,我使用 formData.append("outsideSite", _this.addressName); 时发现_this.addressName如果是中文的话,发送出去的请求会是乱码,请问有解决方法吗? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wx-formdata.