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
Opening a UTF-8 file containing a byte order mark (BOM) causes an error and the map viewer fails to load.
Reproduce
Try to open a UTF-8 .geojson file file starting with binary 0xFEFF (The UTF-8 Byte Order Mark or BOM).
A popup appears reading Renderer Failure: new ims export features.geojson. Unexpected token in JSON at position 0 See screenshot below:
Also note in the above screenshot that Jupyter's text editor also incorrectly shows the BOM as a red dot. Opening the same .geojson file in VS Code works as expected; the the BOM is hidden.
Context
Operating System and version: Windows 10
Python Version: 3.9
Browser and version: Chrome
JupyterLab version: 3.0.16
The troublesome geojson file is the result of an export from an ESRI Web AppBuilder application.
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Description
Opening a UTF-8 file containing a byte order mark (BOM) causes an error and the map viewer fails to load.
Reproduce
.geojson
file file starting with binary 0xFEFF (The UTF-8 Byte Order Mark or BOM).Renderer Failure: new ims export features.geojson. Unexpected token in JSON at position 0
See screenshot below:Also note in the above screenshot that Jupyter's text editor also incorrectly shows the BOM as a red dot. Opening the same
.geojson
file in VS Code works as expected; the the BOM is hidden.Context
The troublesome geojson file is the result of an export from an ESRI Web AppBuilder application.
The text was updated successfully, but these errors were encountered: