Chinese characters in the mail

I want to add some Chinese characters to mailto: email link.

I tried

<a href="mailto:email@address.com?subject=调查 / Inquiry">Email</a>

but when I click on the link in the subject line of Outlook

è ° ƒæŸ ¥ äº¨å¾ · æ £ ® / Request

I also tried

<a href="mailto:email@address.com?subject=&#35843;&#26597; / Inquiry">Email</a>

but I get the same result as above.

I understand that this may be an Outlook problem, but I'm interested in finding the right way to implement this functionality.

+3
source share
6 answers

URL Encoding Raw URL

To encode mailto links / standard links with special characters, you can use php function rawurlencode

-, http://www.cafewebmaster.com/online_tools/rawurlencode

:

<a href="mailto:email@address.com?subject=调查 / Inquiry">Email</a>

:

<a href="mailto:email@address.com?subject=%E8%B0%83%E6%9F%A5 / Inquiry">Email</a>

+3

, , . MIME Mail, RFC,

http://www.ietf.org/rfc/rfc2047.txt

:

Subject: =?GB2312?B?u7bTrbLOvNPDwLn61bm74Q==?=

UTF-8. , .

+1

, , - , , .

+1

# 1 "- > - > - > " → " UTF-8 mailto: protocol"

+1

-ASCII- . , .

() , , , , 7- ASCII. MIME , -. : . .

0

outlook - gb2312, , , gb2313, . , , , .

0

Source: https://habr.com/ru/post/1715342/


All Articles