-
Notifications
You must be signed in to change notification settings - Fork 109
fix(datasets): default plotly.JSONDataset save encoding to UTF-8
#1205
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
Conversation
|
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!! |
plotly.JSONDataset save encoding to UTF-8
|
Hi @SRIKAR-8-77 could you also fix the DCO test here? |
|
@SRIKAR-8-77 Could you fix the DCO sign off on this PR too so I can make further changes? :) |
28ed5f5 to
83f09a4
Compare
Signed-off-by: Merel Theisen <[email protected]>
Signed-off-by: Merel Theisen <[email protected]>
|
I've updated the test to reflect these changes and also added the change to the release notes. |
ElenaKhaustova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ravi-kumar-pilla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
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.