topless
topless

Reputation: 8221

How to include Non-AscII character in python appengine send html mail

My problem is that I want to compose an email in python environment of google appengine. When I add Greek characters to the body of my message I get: SyntaxError: Non-ASCII character '\xce'

megssage.html = """
<html>
<body>
    παραδειγμα
</body>
</html>"""

Upvotes: 1

Views: 1176

Answers (1)

Gabi Purcaru
Gabi Purcaru

Reputation: 31524

Use this shebang:

# -*- coding: utf-8 -*-

Upvotes: 3

Related Questions