crifurch / pure_ftp

MIT License
6 stars 3 forks source link

Non-ASCII code no #9

Closed wuujiann closed 1 month ago

wuujiann commented 5 months ago

Using the following code from your example, listNames() display non-ANSI characters in filename as '?'. What do I need to set so that non-ASCII can be displayed properly.

await client.currentDirectory.listNames().then(print);

Output:


flutter: [/bird park_restored.jpeg, /????.jpg]
wuujiann commented 5 months ago

Turns out that you need to send "OPTS UTF8 ON" after socket.connect(host,port).

crifurch commented 1 month ago

@wuujiann try last version