system.net.sendEmail encoding

Hello, I am trying to send an email that has following subject (in Czech):

“Nový posun”

and what I receive is:

“Nov?? posun”

How do I make sending email contents with diacritics work properly?

Thank you!

What does your script look like? Are you using the unicode string literal when setting the subject and/or body?

subject = u"Nový posun"
2 Likes

That was it. I did not use the string literal.