How to include an html file into a template using App Engine

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:


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.

Need Your Help

Rails by Example (by Michael Hartl), Lesson 9.23 redirect will not work

ruby-on-rails ruby authentication login

I am following Lesson 9 covering redirects, yet the redirect just won't work! I followed the code to the letter to no avail.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.