<@U04S8PLJWMT> in a csv file I have an i with the ...
# ask-ai
t
@kapa.ai in a csv file I have an i with the accent in the file - what is the solution to read this file without error with sftp bulk
k
To read a CSV file containing accented characters (like "í") with the SFTP Bulk source in Airbyte, you need to ensure that the correct file encoding is specified in your source configuration. Accented characters are often encoded in formats like UTF-8 or ISO-8859-1 (Latin-1). From the knowledge sources, if your file is encoded in ISO-8859-1 (Latin-1), you should set the encoding option to "latin-1" in your CSV read options. If your file is UTF-8, use "utf8". It's important to update the source configuration and refresh the source schema after changing the encoding, as failing to do so may cause Airbyte to continue using the previous encoding and result in errors when reading accented characters. Here’s an example of how to set the encoding in your SFTP Bulk source configuration:
Copy code
json {   "filetype": "csv",   "encoding": "latin-1",   "delimiter": ",",   ... }
If you change the encoding, make sure to refresh the source schema in your Airbyte connection. If you do not refresh, Airbyte may still try to use the old encoding, leading to errors like
UnicodeDecodeError
when reading accented characters. If you encounter issues with the schema refresh freezing, try rebuilding the connection from scratch as a workaround. This approach is based on a similar issue where a user successfully resolved encoding problems with accented characters by setting the encoding to "latin-1" and refreshing the schema after the change [Issue to load Latin-1 Encoded file from sFTP](https://discuss.airbyte.io/t/1054). If your file is encoded differently, adjust the encoding value accordingly (e.g., "utf8" for UTF-8 files).
t
@kapa.ai specifying either does not work with the connector.
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide evidence that specifying the encoding (such as "utf8" or "latin-1") in the SFTP Bulk connector's CSV configuration reliably resolves issues with accented characters. While there are references to encoding options in the configuration and related issues with other connectors, there is no explicit confirmation that this works as expected for SFTP Bulk, nor is there documentation confirming support for encodings beyond the default. Additionally, there are user reports of encoding-related issues and workarounds in other connectors, but not a clear, documented solution for SFTP Bulk. If specifying the encoding does not work for you, this may be a limitation or bug in the current version of the connector, and you may need to open an issue with the Airbyte team for further support or await a future update that addresses this functionality [Issue to load Latin-1 Encoded file from sFTP](https://discuss.airbyte.io/t/1054). If you need to handle files with accented characters and encoding options are not working, the knowledge sources do not provide an alternative solution at this time.