json化的时候转义了,用这个 $str = json_encode($a, JSON_UNESCAPED_UNICODE);
发货信息录入接口字段item_desc中文乱码怎么解决?开发语言:php 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/order-shipping/order-shipping.html#%E4%B8%80%E3%80%81%E5%8F%91%E8%B4%A7%E4%BF%A1%E6%81%AF%E5%BD%95%E5%85%A5%E6%8E%A5%E5%8F%A3 post数组数据: $post = [ "order_key" => [ "order_number_type" => 1, "mchid" => "1646111***", "out_trade_no" => "20230721101459***" ], "logistics_type" => 2, "delivery_mode" => 1, "shipping_list" => [ [ "item_desc" => "玉米饭(1)" ] ], "upload_time" => "2023-07-21T10:35:43.575+08:00", "payer" => [ "openid" => "o1hyC66giLDx****2frG9n9-****" ] ]; 发起POST请求: $res = Http::withHeaders(['Content-Type' => 'application/json;charset=UTF-8'])->post($url, $post); 返回状态正常,已经发货成功,但是在微信客户端服务通知中商品信息乱码,大佬么是怎么解决的? [图片]
2023-10-12