Convert Unicode to S3 UTF-8 'string', by default replacing all invalid characters with '?' or raise an exception.
(string, errors='replace')
| 162 | |
| 163 | |
| 164 | def encode_to_s3(string, errors='replace'): |
| 165 | """ |
| 166 | Convert Unicode to S3 UTF-8 'string', by default replacing |
| 167 | all invalid characters with '?' or raise an exception. |
| 168 | """ |
| 169 | return base_deunicodise(string, "UTF-8", errors, True) |
| 170 | __all__.append("encode_to_s3") |
| 171 | |
| 172 |
no test coverage detected