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]>
@merelcht
Copy link
Member

I've updated the test to reflect these changes and also added the change to the release notes.

@merelcht merelcht requested a review from lrcouto December 10, 2025 12:54
@ElenaKhaustova ElenaKhaustova self-requested a review December 10, 2025 14:03
Copy link
Contributor

@ElenaKhaustova ElenaKhaustova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@ravi-kumar-pilla ravi-kumar-pilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@merelcht merelcht merged commit 68ab849 into kedro-org:main Dec 10, 2025
16 of 17 checks passed
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

5 participants