Skip to content

Commit cffbf39

Browse files
committed
leniently parse shapefile field values
1 parent 41c50aa commit cffbf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/basemap/shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def u(v):
5858
if PYTHON3:
5959
if isinstance(v, bytes):
6060
# For python 3 decode bytes to str.
61-
return v.decode(default_encoding)
61+
return v.decode(default_encoding, errors="replace")
6262
elif isinstance(v, str):
6363
# Already str.
6464
return v

0 commit comments

Comments
 (0)