akreider wrote:
Does this have utf-8 support? I'm getting my software to work in unicode so that it will work in 99% of the world's languages.
I'm not sure if you'd want to build-in utf-8 support, or if there is something that programmers should be doing before they get the email text into your script?
I've read something about needing to convert the email text to base64... I guess I'd want to be able to have the email text, subject header, and to: header in unicode.
I can now confidently answer this question with "Yes".
2.1.0 includes a number of changes which all deal with unicode and other character encoding issues. I've had a number of developers try test this quite throroughly against various servers an clients with languages covering thai, danish, spanish and swedish. Thai was also tested with windows-874 encoding successfully.
Unless you specify otherwise using setCharset() Swift will automatically figure out if the email you're sending is UTF-8 or not.
The other change added apart from the encoding itself is to check for servers that support 8BITMIME and don't require the use of quoted-printable encoiding on top of the unicode. These servers will just take the unicode as is, the others will take it with QP encoding and the client decodes that again.
In a nutshell, UTF-8 is working great and you don't need to specify it
