Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rspeer/python-ftfy
/ _c1_fixer
Function
_c1_fixer
ftfy/fixes.py:501–502 ·
view source on GitHub ↗
(match: Match[str])
Source
from the content-addressed store, hash-verified
499
500
501
def
_c1_fixer(match: Match[str]) -> str:
502
return
match.group(0).encode(
"latin-1"
).decode(
"sloppy-windows-1252"
)
503
504
505
def
fix_c1_controls(text: str) -> str:
Callers
nothing calls this directly
Calls
2
decode
Method · 0.45
encode
Method · 0.45
Tested by
no test coverage detected