https://kedro.org/ logo
#questions
Title
# questions
j

Janick Spirig

01/17/2024, 7:12 PM
Hi! I am trying to save multiple text files with
partitions.PartitionedDataset
as the file content is in Portuguese language I am facing ascii encoding errors. Is there a way I can define encoding: utf-8 as save_arg in the catalog?
after checking the amazing kedro documentation again I found the solution:
Copy code
raw_input:
  type: partitions.PartitionedDataset
  path: 
  dataset:
    type: text.TextDataset
    fs_args:
      open_args_load:
        encoding: "utf-8"
  filename_suffix: ".txt"