You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to convert a shp file into geojson with uniscode characters inside. Some seems to be converted to UTF-8, if I use Shapefile::OPTION_DBF_CONVERT_TO_UTF8 option, but not All. Especially german Umlaute seems to be not converted.
This is not a matter of reading and converting UTF-8 from the shapefile DBF, which is happening, but rather a deliberate choice for the GeoJSON output, where multibyte unicode characters get escaped.
I could add an option to Geometry::toGeoJSON() in order to output unescaped multibyte UTF-8 characters, basically it's just a matter of passing JSON_UNESCAPED_UNICODE flag to PHP json_encode function. I will think about possible issues with that and eventually add it.
By the way, currently escaped JSON is 100% valid and should be the in the most interoperable form though, why is it causing you issues?
I tried to convert a shp file into geojson with uniscode characters inside. Some seems to be converted to UTF-8, if I use
Shapefile::OPTION_DBF_CONVERT_TO_UTF8
option, but not All. Especially german Umlaute seems to be not converted.ö is still \u00f6
Example file
The text was updated successfully, but these errors were encountered: