diff options
Diffstat (limited to 'test/templates/read_unicode_py3k.html')
-rw-r--r-- | test/templates/read_unicode_py3k.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/templates/read_unicode_py3k.html b/test/templates/read_unicode_py3k.html new file mode 100644 index 0000000..c94399e --- /dev/null +++ b/test/templates/read_unicode_py3k.html @@ -0,0 +1,10 @@ +<% +try: + file_content = open(path, encoding='utf-8', errors='ignore') +except: + raise "Should never execute here" +doc_content = ''.join(file_content.readlines()) +file_content.close() +%> + +${bytes(doc_content, encoding='utf-8')} |