Email iso-2022-jp Encoding

Question:

I am using: Email.Subject = email.QEncodeString(Subject.text,"ISO-2022-JPN"). The email came back with subject line as garnish. I also tried BEncodeString. It came back with same result.

I used: email.charset = "ISO-2022-JPN". The body text came back ok.

Can you help me with some suggestions how to make subject line work with ISO-2022-JPN encoding?

Answer:

The correct name of the charset is "iso-2022-jp", not "iso-2022-jpn".

Also, you do not need to explicitly Q-Encode anything, Chilkat will take care of that automatically. Simply assign the Subject property to the Unicode string, and then set the Email.Charset property equal to "iso-2022-jp".