We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c50aa commit cffbf39Copy full SHA for cffbf39
lib/mpl_toolkits/basemap/shapefile.py
@@ -58,7 +58,7 @@ def u(v):
58
if PYTHON3:
59
if isinstance(v, bytes):
60
# For python 3 decode bytes to str.
61
- return v.decode(default_encoding)
+ return v.decode(default_encoding, errors="replace")
62
elif isinstance(v, str):
63
# Already str.
64
return v
0 commit comments