MCPcopy
hub / github.com/rspeer/python-ftfy / fix_encoding_and_explain

Function fix_encoding_and_explain

ftfy/fixes.py:37–46  ·  view source on GitHub ↗

Deprecated copy of `ftfy.fix_encoding_and_explain()`.

(text: str)

Source from the content-addressed store, hash-verified

35
36
37def fix_encoding_and_explain(text: str) -> Any:
38 """
39 Deprecated copy of `ftfy.fix_encoding_and_explain()`.
40 """
41 warnings.warn(
42 "`fix_encoding_and_explain()` has moved to the main module of ftfy.",
43 DeprecationWarning,
44 stacklevel=2,
45 )
46 return ftfy.fix_encoding_and_explain(text)
47
48
49def fix_encoding(text: str) -> str:

Callers 2

test_json_exampleFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_json_exampleFunction · 0.72