Reputation: 1685
I used to add my templates like hedaer.html
and footer.html
in django projects with {% include 'header.html' %}
i have do the same in my App Engine project but got this error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 1294: invalid continuation byte
I wonder if there is a way to do that In App Engine template using Python ?
html files created with UTF-8 encode:
Upvotes: 0
Views: 124
Reputation: 2536
That's exactly how you include an html file in a template. The error simply means the html file you are trying to include is not UTF-8 valid. All you need to do is re-save it as UTF-8 in your editor.
Upvotes: 1