#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 hhsuper):

 thanks for the quickly reply

 The Elixir's issue is ok

 the encoding thing, i have some different thought, if only add encoding
 hints(utf-8) in file, but the file's actual encoding still the
 default(ascii),
 1. your encoding will inconsist, you declare your file encoding utf-8 with
 the hint, but actual your file encoding isn't uft-8,
 so you can't input some non-ascii charactors actually, also can't get the
 utf-8 hint functionality, see the sample below

 2. actually, the simple window's notepad is support for utf-8, i don't
 think that other editors that don't support utf-8 should be used for the
 web(or tg)'s dev

 ('''I can't upload the attach correctly''')attach has two files, same
 content, same aim to output the Russia chars 'вгдеё', all with the hint
 utf-8, but ascii.py's file encoding is ascii, and the utf8.py's file
 encoding as you guess is utf-8, as you python shell support the utf-8, run
 the two files, utf8.py get the right result, but ascii.py throw a exc, so
 you can't use the hint only to get the utf-8's benefit, it's same the tg's
 project template files, only difference is we output to shell, but tg
 output to the browser(which support utf-8 affirmly).

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2270#comment:2>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to