Changeset 1871 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
10/23/04 21:28:18 (20 years ago)
Author:
jalet
Message:

Small fix to the cgi script to please Freshmeat's fmII URL validator/1.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r1817 r1871  
    2424# 
    2525# $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# 
    2629# Revision 1.39  2004/10/13 09:38:25  jalet 
    2730# Added a translatable message from the CGI script 
     
    209212def getCharsetPreference() : 
    210213    """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") 
    212215    charsets = [l.strip().split(';')[0] for l in charsets.split(",")] 
    213216    return charsets[0]