Decode string according to RFC 2231
(s)
| 232 | |
| 233 | # RFC2231-related functions - parameter encoding and decoding |
| 234 | def decode_rfc2231(s): |
| 235 | """Decode string according to RFC 2231""" |
| 236 | parts = s.split(TICK, 2) |
| 237 | if len(parts) <= 2: |
| 238 | return None, None, s |
| 239 | return parts |
| 240 | |
| 241 | |
| 242 | def encode_rfc2231(s, charset=None, language=None): |