rendered paste body==== 8< parent.myt >8 ==== # encoding: latin1---------------<% c.codestr('\x41') %><% c.codestr('\xe9') %>---------------==== 8< fragment.myt >8 ====# encoding: latin1---------------<% c.codestr('\x41') %><% c.codestr('\xe9') %>---------------<% render('fragment.myt', fragment=True) %>---------------==== 8< frag.py >8 ====from fragtest.lib.base import *import sysdef get_unicode(s): return unicode(s, encoding='latin1')class FragController(BaseController): def index(self): return Response('%s<br/>%s<br/>%s' % ( h.link_to('parent', h.url_for(action='parent')), h.link_to('fragment', h.url_for(action='fragment')), sys.getdefaultencoding() )) def parent(self): c.codestr = get_unicode return render_response('parent.myt') def fragment(self): c.codestr = get_unicode return render_response('fragment.myt') ==== fin ====