jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
905 stars 120 forks source link

Unicode escape #83

Closed abruski closed 7 years ago

abruski commented 7 years ago

Is there equivalent to ensure_ascii=False in this module? It converts utf-8 text to escape sequence.

frewsxcv commented 7 years ago

All parameters passed to geojson.dumps will also be passed to json.dumps, so you should be able to pass ensure_ascii=False:

https://github.com/frewsxcv/python-geojson/blob/bfea4a814632806761093eafcd50de27ec013de7/geojson/codec.py#L31-L33

Does this answer your question?

frewsxcv commented 7 years ago

Reopen if this is still an issue.