Message6528
 
 
 
 
  | Fixed in 9cc3257d0f.
decode_header sometimes returns bytes, sometimes unicode, so the patch
checks if the type is byte and tries to decode with either the given
encoding, utf-8, or iso-8859-1 if utf-8 fails.
The patch works on both Python 2 and 3. |  |
 
| Date | User | Action | Args |  | 2019-06-05 22:33:49 | ezio.melotti | set | messageid: <1559774029.3.0.998829763558.issue2551008@roundup.psfhosted.org> |  | 2019-06-05 22:33:49 | ezio.melotti | set | recipients:
  + ezio.melotti, rouilj, joseph_myers |  | 2019-06-05 22:33:49 | ezio.melotti | link | issue2551008 messages |  | 2019-06-05 22:33:49 | ezio.melotti | create |  | 
 |