Apr-01-2020, 08:30 PM
Hello
I am new to python and i am trying to connect to FTP to download files. The FTP password provided by vendor has a special character '(apostrophe) in it.
To resolve error:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 12: ordinal not in range(256)
I used encode('cp1252') in my ftps login but then the problem is login at FTP site fails with
error_perm: 530 Login or password incorrect!
How do you get around this issue ?
Thanks!
I am new to python and i am trying to connect to FTP to download files. The FTP password provided by vendor has a special character '(apostrophe) in it.
To resolve error:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 12: ordinal not in range(256)
I used encode('cp1252') in my ftps login but then the problem is login at FTP site fails with
error_perm: 530 Login or password incorrect!
How do you get around this issue ?
Thanks!