Skip to content

Commit

Permalink
add utf-8 support to geojson.dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
r authored and r committed Aug 8, 2021
1 parent f57bc48 commit f7ce2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geojson/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def dump(obj, fp, cls=GeoJSONEncoder, allow_nan=False, **kwargs):
fp, cls=cls, allow_nan=allow_nan, **kwargs)


def dumps(obj, cls=GeoJSONEncoder, allow_nan=False, **kwargs):
def dumps(obj, cls=GeoJSONEncoder, allow_nan=False, ensure_ascii=False, **kwargs):
return json.dumps(to_mapping(obj),
cls=cls, allow_nan=allow_nan, **kwargs)
cls=cls, allow_nan=allow_nan, ensure_ascii=ensure_ascii, **kwargs)


def load(fp,
Expand Down

0 comments on commit f7ce2b5

Please sign in to comment.