Changeset 3498

Show
Ignore:
Timestamp:
05/06/09 06:50:29 (13 years ago)
Author:
jerome
Message:

Ensures IPP requests are decoded using the charset they were encoded in,
and which may not always be UTF-8 with old CUPS releases.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/cups.py

    r3497 r3498  
    9797            try : 
    9898                setattr(self, attrib, 
    99                               getattr(self, attrib).decode("UTF-8", "replace")) 
     99                              getattr(self, attrib).decode(self.Charset, "replace")) # Charset itself should only be stored in ascii anyway 
    100100            except AttributeError : 
    101101                pass