Outlook not processing multi-byte characters when using mailto:

后端 未结 5 601
谎友^
谎友^ 2021-01-15 21:59

I have similar problem to the one described in this question: I am using the \"mailto\" protocol to open the default mail client from Java (I am tied to Java 5 for now, so s

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-15 22:12

    You are not specifying any encoding, so Outlook (or whoever gives the address to Outlook) can only guess. In case of your HTMl snippet, try whether specifying the encoding (UTF-8) explicitly in the changes that behavior.

    As far as cmd is concerned, it can't really cope with UTF-8. It handles Unicode as UTF-16, though, albeit with problems.

    When I try this here (Windows Live Mail, instead of Outlook, though), everything in the subject gets converted to the legacy codepage so having CJK there should be a problem.

    However, I wonder why you are trying to mis-use cmd to let the user write a mail anyway. There are surely better alternatives out there (even though I currently don't know one because I never needed it).

提交回复
热议问题