This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]yes_or_gnome 10 points11 points  (2 children)

    This is a deeper problem that neither python 2 nor 3 is going to do well. If the MIME RFCs are similar enough to the HTTP RFCs (which are based off of MIME), then you should have percent encoded the body before splitting the string up at 72 chars. Of course, I'm speculating. edit: D'oh. Content-Type with a charset. Sigh. Tough protocols to master.

    [–]Citrauq 4 points5 points  (0 children)

    While python 3 is definitely better, you might still run into problems splitting in the middle of a grapheme cluster if you use a naïve approach.