OK, I get it, the BOM handler seems a feature for template engines. I think this couldn't be a serious problem for web designer, but it really could for me before I read your link. wow, details is the key :)
Thanks very much. 在 2014年7月11日星期五UTC+8下午9时38分34秒,Kurtis Rader写道: > > See http://www.w3.org/International/questions/qa-byte-order-mark.en.php > > In general you should not include a BOM if the encoding is UTF-8. However, > a BOM is allowed for UTF-8 and browsers are required to do the right thing. > Ideally other software like jinja2 should also handle BOM sequences > correctly. But in practice most software (including, apparently, PHP) does > not handle BOM sequences. While technically a bug (in so far as jinja2 > doesn't fully implement the relevant standards) most people would consider > this a feature request. > > > On Fri, Jul 11, 2014 at 12:20 AM, Zarey Chang <[email protected] > <javascript:>> wrote: > >> I found the relative content about this problem from doc in jinja's home: >> http://jinja.pocoo.org/docs/tricks/#null-master-fallback >> >> it is to say, all contents before first 'extend' appear will be print >> out, so >> the BOM of child templates was printed. >> >> Now I am sure this is bug of jinja2, or maybe the author doesn't agree >> with me. >> Perhaps I should post this to him. >> >> 在 2014年7月11日星期五UTC+8上午12时39分39秒,Zarey Chang写道: >>> >>> That's wierd, my templates file(index.html, blog.html, base.html......) >>> uploaded on GAE, but , check link below: >>> (url include THE number) >>> 1.yunzlog.appspot.com >>> 2.yunzlog.appspot.com >>> >>> both instance use very same code, the only difference is : >>> * base.html saved in UTF8 or ANSI * >>> *(1.yunzlog.appspot.com <http://1.yunzlog.appspot.com> saved in ANSI, >>> 2.yunzlog.appspot.com <http://2.yunzlog.appspot.com> in UTF8)* >>> >>> is this difference related with jinja2? or I missed something. >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "pocoo-libs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/pocoo-libs. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank > -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.
