微信创建菜单报must use utf-8 charset hint:错误

errcode=65318, errmsg=must use utf-8 charset hint: [BIlxtA0785vr23]

wKiom1d3zSLwyFsvAADGzutsV8g983.jpg-wh_50650) this.width=650;” src=”https://images.winkp.com/imgs/winkp/_winkp/2023/08/5125917736764810237.jpg” title=”QQ截图20160702221756.jpg” class=”aligncenter”>

错误提示:must use utf-8 charse

仔细检查httpclient 发现都是utf-8的设置,

后经过排查发现,根本就不是UTF-8等编码的原因,

而是,这个JSON里面的type不能是大写,要是小写的 “view”,不得不吐槽 微信的这个错误提示,好坑的。