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.

I'm +1 on just setting utf8 for everyone (in an option someone can
override if they really desperately want to).  Lots of things default
to utf8, including paste.wsgiwrappers, webob, XML, and... well, a ton
of things these days.

  Ian

--~--~---------~--~----~------------~-------~--~----~
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