#2270: TG2b6's update and the project template's encoding
-------------------------+--------------------------------------------------
Reporter: hhsuper | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: trunk
Severity: major | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by chrisz):
hhsuper, your "ascii.py" file is in fact ''not'' ascii encoded, but
encoded with windows-936 or something. Obviously you ''cannot'' encode a
file with ascii that contains non-ascii characters.
The point is that none of our quickstart template files contains any non-
ascii characters. So whether you store them as ascii or utf-8 makes ''no
difference'', they ''are both'' valid ascii files and valid utf-8 files at
the same time. What happens when you start entering non-ascii chars and
save these files depends solely on the default encoding of your editor (it
seems it's windows 936). The only way to enforce UTF-8 would be to add a
BOM at the beginning of the file, but some programs or people could have
problems with this since it is not very common in the Linux world.
--
Ticket URL: <http://trac.turbogears.org/ticket/2270#comment:5>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---