KB Article #71745
POP3 encoding when using characters outside ASCII range
--when using special/accent characters (like é) with POP3 the received data is encoded
--this can affect different fields of an email. For example: To, From, Subject, Attachment name ...
--checking the details of a transfer one can see values like:
?iso-8859-1?Q?Volume_des_demandes_et_taux_de_r=E9partition.csv?=
or
?UTF-8?B?csOpcGFydGl0aW9uLmNzdg==?=)
--This can affect the logic of an application and especially writing files to disk since the question mark (?) is not acceptable within a file name on Windows
Resolution
*For characters outside ASCII range (like é) the mailing software must encode them.
*This can be done in 2 ways:
1. Quoted Printable (Q): it starts with "?utf-8?Q?..."
or
2. Base64 (B): it starts with "?utf-8?B?..."
*The format of the obtained text is:
?Character Set?Enconding?Encoded Text?
*As of writing this note, decoding from "Base64" or "Quoted Printable" is not possible in the current versions of Gateway (Gateway 6.13.1 SP1, Gateway 6.12.2 SP12)
*One can use external utilities or can develop its own code to decode this type of text