通过mailto链接维护unicode内容...... [英] Maintaining unicode content through mailto link...

查看:94
本文介绍了通过mailto链接维护unicode内容......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我试图通过mailto链接传递unicode数据。问题是,它会出现乱码,并且不会以正确的格式显示在Outlook窗口中,而是形成奇怪的中文字符。谁能告诉我如何克服这个问题?


提前谢谢。

Hi all,
I am trying to pass unicode data through mailto links. The problems is, it gets garbled and does not appear in Outlook window in its proper format and instead takes weird chinese characters form. Can anyone tell me how to overcome this ?

Thanks in advance.

推荐答案

使用 encodeURIComponent function。
Use the encodeURIComponent function.


@acoder


forx回复...但

encodeURIComponent 将给我编码的字符串,编码为u​​ri格式。但我想要的不是这个。


我已经用这种形式编码了我的数据。这是数据中的unicode内容,当被带到电子邮件客户端时,会出现乱码。我想保留unicode信息。
@acoder
thanx for the reply...but

encodeURIComponent will give me the string i want to encode, into encoded uri format. But what i want is not this.

I have already encoded my data in that form. It is the unicode content in that data which when taken to E-mail client, gets garbled. I want to maintain that unicode information.


给我一个unicode内容的例子。此外,这个mailto链接是动态生成的,还是在页面加载时已经存在于HTML代码中?
Give me an example of unicode content. Also, is this mailto link being dynamically generated or is it already there in HTML code when the page loads?


这篇关于通过mailto链接维护unicode内容......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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