Return ``True`` iff *ch* (a single character) is cp1252-encodable.
(ch: str)
| 1214 | |
| 1215 | |
| 1216 | def _cp1252_encodable(ch: str) -> bool: |
| 1217 | """Return ``True`` iff *ch* (a single character) is cp1252-encodable.""" |
| 1218 | try: |
| 1219 | ch.encode("cp1252") |
| 1220 | except UnicodeEncodeError: |
| 1221 | return False |
| 1222 | return True |
no outgoing calls
no test coverage detected