Gmail API not respecting UTF encoding in subject

前端 未结 3 770
不思量自难忘°
不思量自难忘° 2021-01-18 19:29

In an app I\'m helping develop we\'ve added in the ability for a user to invite other users and personalize the invitation email, and then send it via Gmail\'s APIs. I\'m en

3条回答
  •  悲哀的现实
    2021-01-18 19:58

    I ran into the same issue and I get the following information:Using UTF-8 charactors in an e-mail mail subject.

    So I replace my subject with:=?utf-8?B?${convertToBase64(subject)}?=,it works well.

    the ${} is an variable template, if you want to set Нык ан мюндй конвынёры as subject,it will seems like this:

    =?utf-8?B?0J3Ri9C6INCw0L0g0LzRjtC90LTQuSDQutC-0L3QstGL0L3RkdGA0Ys?=

提交回复
热议问题