Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 BOM causes error #261

Open
thehappycheese opened this issue Aug 18, 2021 · 1 comment
Open

UTF-8 BOM causes error #261

thehappycheese opened this issue Aug 18, 2021 · 1 comment
Labels

Comments

@thehappycheese
Copy link

Description

Opening a UTF-8 file containing a byte order mark (BOM) causes an error and the map viewer fails to load.

Reproduce

  1. Try to open a UTF-8 .geojson file file starting with binary 0xFEFF (The UTF-8 Byte Order Mark or BOM).
  2. A popup appears reading Renderer Failure: new ims export features.geojson. Unexpected token  in JSON at position 0 See screenshot below:

Screenshot 2021-08-18 163733

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.

@welcome
Copy link

welcome bot commented Aug 18, 2021

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.
welcome
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! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant