Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ dewinize
Function
dewinize
04-text-byte/simplify.py:81–83 ·
view source on GitHub ↗
Replace Win1252 symbols with ASCII chars or sequences
(txt)
Source
from the content-addressed store, hash-verified
79
80
81
def
dewinize(txt):
82
""
"Replace Win1252 symbols with ASCII chars or sequences"
""
83
return
txt.translate(multi_map)
# <4>
84
85
86
def
asciize(txt):
Callers
1
asciize
Function · 0.85
Calls
1
translate
Method · 0.80
Tested by
no test coverage detected