python - How can I render a Django template that has UTF8 characters in it? -


I am trying to send a Django email with UTF-8 characters in the template, in particular:

Unicodecode Error: 'utf8' can not decode byte codex 147 in codec 147: unexpected code byte

While attempting to write a special "î" character in symbolic terms (that is the character in that place.)

Here to create an email body A. My code is:

 template = loader.get_template ('French_thank_you.html') 

Mac Roman encoding using the editor. Open the template, save it as UTF-8, and it should work properly.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -