开发者

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

开发者 https://www.devze.com 2023-01-27 05:41 出处:网络
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:

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>"""


Use this shebang:

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

精彩评论

暂无评论...
验证码 换一张
取 消