Jan
06/26/2024, 8:33 AM'utf-8' codec can't decode byte 0xe8 in position 6570: invalid continuation byte
Saving and loading the figure manually via plotly.io.write_json and plotly.io.read_json is working though. I also tried to use plotly.io.from_json via fsspec and that was working as well without issues.
I had a look at the source code for the plotly.JSONDataset and I found a hardcoded "utf-8" in line 153. I experimented changing this to "latin-1" and then loading the figures worked. Is there a reason why "utf-8" is hardcoded here? Could this be a parameter to be set in the catalog definition?
I also tried to set different encoding options via the catalog parameters fs_args and load_args but nothing worked.Jan
06/26/2024, 9:44 AMfs_args:
open_args_save:
encoding: utf-8
Don't know why it was not saving it properly in utf-8 before.Elena Khaustova
06/26/2024, 11:14 AMencoding
argument as by default it’s should be utf-8
https://docs.kedro.org/en/stable/data/data_catalog.html#load-and-save-arguments
https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.open
We might need to double-check what value is used by default in case if not provide open_args_save.encoding
.
Would you mind opening an issue?Jan
06/26/2024, 11:30 AMElena Khaustova
06/26/2024, 11:37 AM