On Dec 17, 2007, at 11:54 PM, Ian Bicking wrote:

>
> On Dec 14, 2:14 am, "Max Ischenko" <[EMAIL PROTECTED]> wrote:
>> Would it be OK to add default file encoding declaration (utf8)  
>> to .py/.mako
>> files that PasteScript generates? It won't hurt anyone but help  
>> those who
>> doesn't code in ascii and may be even catch a few unicode errors.
>
> Does Mako detect the utf8 BOM and use UTF8 when it is there?  Could
> it?  I don't know if the BOM is too fragile.  Editors sometimes ignore
> it, or it can sometimes confuse them.  But Python does notice the BOM
> in .py files.  Probably a global utf8 is better.
>

Mako and myghty with unicode support both detect the UTF-8 BOM like  
the Python parser.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to