Ticket #28487: encoding.diff
File encoding.diff, 435 bytes (added by , 7 years ago) |
---|
-
encoding.
old new 121 121 if encoding == 'utf-8': 122 122 return s 123 123 else: 124 return s.decode( 'utf-8', errors).encode(encoding, errors)124 return s.decode(encoding, errors).encode('utf-8', errors) 125 125 if strings_only and is_protected_type(s): 126 126 return s 127 127 if isinstance(s, six.memoryview):