from google.appengine.ext.webapp import template
templatepath = os.path.join(os.path.dirname(file), 'template.html')
self.response.out.write (template.render(templatepath , template_values))
나는 다음과 같은 에러를 본적이
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe2 in position 17692: ordinal not in range(128)
args = ('ascii', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...07/a-beautiful-method-to-find-peace-of-mind/ -->
', 17692, 17693, 'ordinal not in range(128)')
encoding = 'ascii'
end = 17693
message = ''
object = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...07/a-beautiful-method-to-find-peace-of-mind/ -->
reason = 'ordinal not in range(128)'
start = 17692
것 같다 그 기본 장고 템플릿 엔진은 "ascii"인코딩을 가정하며 "utf-8"이어야합니다. 문제의 원인과 해결 방법을 알고있는 사람은 누구입니까? 감사합니다. .
DEFAULT_CHARSET의 값은 무엇입니까? 도움이 될 수 있습니다. –
lavinio