amoskaliov opened a new issue, #54015:
URL: https://github.com/apache/airflow/issues/54015

   ### Apache Airflow Provider(s)
   
   ftp
   
   ### Versions of Apache Airflow Providers
   
   `apache-airflow-providers-ftp==3.13.0`
   
   ### Apache Airflow version
   
   3.0.2
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   This is more like feature request, not a bug (I have not found "Providers 
feature request" category).
   
   Since Python 3.9 standard `ftplib` has switched to `utf-8` as default 
encoding and also has added new `encoding` parameter. But in Airflow FTP 
connection I can't set this parameter. I expected to be able to set it through 
`extra` field, but I can't. 
   
   Now I can't download files from an FTP server, which uses `cp1251` encoding, 
I get an exception: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 
in position 3023: invalid continuation byte`
   
   ### What you think should happen instead
   
   My request is to add `encoding` parameter to `extra` parameters of FTP 
connection and pass it to `ftplib.FTP` constructor.
   
   ### How to reproduce
   
   -
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to