utf-8 txt files are not uploaded correctly if transfer mode is AUTO
|Reported by:||matteo sisti sette||Owned by:|
|Component version:||Operating system type:||Linux|
|Operating system version:|
Take a text file encoded in utf-8 containing non-ascii characters with a .txt extension and upload it to a server with FileZilla with the transfer mode set to "AUTO".
Expected: the transfer mode should be set to whatever is correct, the upload should be done correctly, and the uploaded file should be ok
Observed: the "A" (ASCII) transfer mode is automatically selected and the uploaded file is somehow corrupted.
I'm not sure whether uploading an utf-8 text file in ASCII mode is supposed to work or not (i guess not).
If it is not, then selecting ASCII mode is wrong, and the Binary mode should be selected for utf8 text files when the mode is set to Auto.
If it is supposed to work, then FileZilla does it incorrectly.
Curiously enough, _downloading_ utf8-encoded text files in auto mode does work correctly (and the ASCII mode is selected automatically, again curiously), here the behavior of the server may be involved.