Skip to content

Conversation

@SRIKAR-8-77
Copy link
Contributor

Description

Fixes #741.

The plotly.JSONDataset lacks a file encoding on save, resulting in a UnicodeDecodeError when reloading charts containing special characters on non-UTF-8 systems.

This PR resolves the bug by modifying the DEFAULT_FS_ARGS class attribute on line 55 to add encoding="utf-8" by default for save operations. This makes the save action consistent with the current utf-8 decode on load to provide consistent reliability.

@ankatiyar
Copy link
Contributor

Hiya @SRIKAR-8-77 thanks for your contribution! A couple things CI related before I tag more people for reviews:

Could you get the CI tests passing while we review the PR? Thanks!!

@ankatiyar ankatiyar self-requested a review October 14, 2025 10:47
@deepyaman deepyaman changed the title Fix: Default plotly.JSONDataset save encoding to UTF-8 fix(datasets): default plotly.JSONDataset save encoding to UTF-8 Oct 28, 2025
@ankatiyar
Copy link
Contributor

Hi @SRIKAR-8-77 could you also fix the DCO test here?

@ankatiyar
Copy link
Contributor

@SRIKAR-8-77 Could you fix the DCO sign off on this PR too so I can make further changes? :)

Signed-off-by: Merel Theisen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plotly.JSONDataset not saved as utf-8

3 participants