Changeset 1871 for pykota/trunk/cgi-bin/printquota.cgi
- Timestamp:
- 10/23/04 21:28:18 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r1817 r1871 24 24 # 25 25 # $Log$ 26 # Revision 1.40 2004/10/23 19:28:18 jalet 27 # Small fix to the cgi script to please Freshmeat's fmII URL validator/1.1 28 # 26 29 # Revision 1.39 2004/10/13 09:38:25 jalet 27 30 # Added a translatable message from the CGI script … … 209 212 def getCharsetPreference() : 210 213 """Returns the preferred charset.""" 211 charsets = os.environ.get("HTTP_ACCEPT_CHARSET", " no charset defined")214 charsets = os.environ.get("HTTP_ACCEPT_CHARSET", "UTF-8") 212 215 charsets = [l.strip().split(';')[0] for l in charsets.split(",")] 213 216 return charsets[0]