场景:ios系统的钉钉内消息窗口,打开一个wps文件类型的链接时,期望是正常预览。但是内置浏览器好像没解析成功,发生了乱码。
乱码如图:
响应标头: HTTP/1.1 200 OK Server: JSP3/2.0.14 Date: Thu, 22 Dec 2022 08:25:45 GMT Content-Type: application/wpsoffice Content-Length: 9728 Connection: keep-alive Last-Modified: Thu, 22 Dec 2022 08:09:59 GMT ETag: "FqF8Iz8nTkXS-J-Eg4TyeIWhS0os" Cache-Control: public, max-age=31536000 Accept-Ranges: bytes Access-Control-Expose-Headers: X-Log, X-Reqid Access-Control-Max-Age: 2592000 Content-Disposition: attachment; filename="test.wps"; filename*=utf-8''test.wps Content-Md5: spJF4dwNCAHbPgnwND56Kw== Content-Transfer-Encoding: binary X-Log: X-Log X-M-Log: QNM:xs1172;SRCPROXY:xs481;SRC:2;SRCPROXY:2;QNM3:3 X-M-Reqid: gzwAACLFDHsPEDMX X-Qiniu-Zone: 0 X-Qnm-Cache: Miss X-Reqid: 62kAAAA8oHsPEDMX X-Svr: IO Timing-Allow-Origin: * Ohc-Global-Saved-Time: Thu, 22 Dec 2022 08:25:45 GMT Ohc-Cache-HIT: nb7ct59 [1], wzix98 [1] Ohc-File-Size: 9728 X-Cache-Status: MISS Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS Access-Control-Allow-Credentials: true Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, tg-token, _lang, _currency, _timezone,sw6,csrftoken,sentry-trace
可以尝试下先用外部浏览器打开一下这个文件链接,确定一下文件链接本身是否有问题,如果外部浏览器可以正常预览,而钉钉消息窗口打开乱码的话,再提工单咨询钉钉售后技术支持排查问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。