1、小程序:提交前先编码
encodeURIComponent(e.detail.value.content)
2、服务端解码
URLDecoder.decode(ks.getContent())
3、如果有空格字符串的,保存之前先对空格进行处理,不然空格在页面会变成+号
4、最后在页面进行解码,就能完整显示了
decodeURIComponent(options.content)
![](https://i-blog.csdnimg.cn/blog_migrate/ae446db1e6ee56a27a56ea960a6c7afb.png)