| Newsgroups |
gmane.mail.blat |
| Message-ID |
<[email protected]> |
I use exported function SendW of blat.dll (thus compiled wit Unicode support) vs. 3.2.1.
* If I use the "charset=UTF-8" option the message body file (encoded as UTF-8) is correctly displayed in mail client (Outlook 2010) as expected. However the attachment file name that only contains characters from the local code page (German umlauts) and that is passed by option "-attach äöüß.zip" as wide string is displayed as mojibake in mail client. If the attachment file name contains Unicode characters then everything is fine again.
* If I use the "charset=ISO-8859-1" option the message body file (encoded as UTF-8) is displayed as mojibake in mail client as expected. However this time the attachment file names passed by option "-attach äöüß.zip" as wide string are correctly displayed in mail client.
Is this a problem in blat or my calling application? How can I force the attachment file names (of local code page) to be correctly encoded if "charset=UTF-8" is set? I did not yet try to call WideCharToMultiByte(CP_ACP, ...) and MultiByteToWideChar(CP_UTF8, ...) on the file name wide string to convert to UTF-8.