Decode string according to RFC 2231
(s)
| 367 | |
| 368 | # RFC2231-related functions - parameter encoding and decoding |
| 369 | def decode_rfc2231(s): |
| 370 | """Decode string according to RFC 2231""" |
| 371 | parts = s.split(TICK, 2) |
| 372 | if len(parts) <= 2: |
| 373 | return None, None, s |
| 374 | return parts |
| 375 | |
| 376 | |
| 377 | def encode_rfc2231(s, charset=None, language=None): |
no test coverage detected
searching dependent graphs…