如何解决chrome mailto maxlength限制 [英] how to get around chrome mailto maxlength limit

查看:321
本文介绍了如何解决chrome mailto maxlength限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome的mailto长度限制约为2000个字符.这似乎足够了,但实际上仅对英语来说就足够了.因为长度是在encodeURI之后计算的.

Chrome's mailto length limit is around 2000 characters. It seems to be enough but in fact it's only enough for English Language. Because the length is calculated after encodeURI.

例如仅一个日语字符て". encodeURI('て')将获得9个字符长的%E3%81%A6".因此,我只能在邮件内容中输入2000/9 = 200+个日语字符.这真的太短了.

e.g. for only one Japanese character 'て'. encodeURI('て') gets "%E3%81%A6", which is 9 characters long. So I can only type in around 2000/9 = 200+ Japanese characters in my mail content. This is really too short.

那么有办法解决这个限制吗?可以安装chrome插件之类的东西.

So is there a way to get around this limit? Something like installing chrome plugin is acceptable.

任何建议都将不胜感激.

Any suggestion is greatly appreciated.

编辑

我最终决定使用服务器端解决方案:创建一个弹出页面来模拟邮件客户端,并带有收件人,抄送,主题,内容以及发送按钮.用户单击发送"按钮后,将提交表单,服务器将为用户发送邮件

I have finally decided to use a server-side solution: Create a popup page to simulate mail client, with to, cc, subject, content and also a send button. After the user clicks the send button, the form will be submitted and server will send the mail for the user

推荐答案

我对Firefox(开发者版39.0a2,Windows XP)上的任何大小的mailto-link都没有问题,但是Internet Explorer 8和Chrome不能与提到的约2000个字符大小的mailto链接.因此,我怀疑这是Windows特定的问题.

I have no problem with any sized mailto-links on a Firefox (Developer Edition 39.0a2, Windows XP), however Internet Explorer 8 and Chrome do not work with mailto-links over the mentioned size of around 2000 characters. So, I doubt it is a Windows specific problem.

这篇关于如何解决chrome mailto maxlength限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆