does wodSFTPdll support unicode? - WeOnlyDo Discussion board

does wodSFTPdll support unicode? (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Justas, Monday, April 11, 2005, 12:37 (7167 days ago)

Hello,

let's say on the ftp server there are files whose names are in unicode characters. Could I copy them using wodSFTPdll to my machine correctly (i.e.: file name and file content will remain the same as on the server). If Yes , could you paste here simple example, please?

Re: does wodSFTPdll support unicode?

by wodSupport, Monday, April 11, 2005, 12:53 (7167 days ago) @ Justas

I don't see why not. ActiveX may have problems due to BSTR conversion, but wodSFTPdll doesn't have that.

Not sure what kind of sample you expect - you can use GetFile to retrieve such file. Sample depends on the filename on the server, right?

Re: does wodSFTPdll support unicode?

by Justas, Monday, April 11, 2005, 14:18 (7167 days ago) @ wodSupport

thanks for you quick response.

How can I use unicode characters then, if GetFile function accepts only pointer to char? Can I use multibyte characters? Let's say use wcstombs function to convert wide characters to multibyte characters and pass it to GetFile ? Will GetFile work correctly?

Re: does wodSFTPdll support unicode?

by wodSupport, Monday, April 11, 2005, 14:20 (7167 days ago) @ Justas

Good point. Hmm..

Any chance we could connect there and try it out?

Re: does wodSFTPdll support unicode?

by Justas, Tuesday, April 12, 2005, 09:38 (7167 days ago) @ wodSupport

today I've tried some functions with multibyte characters as a parameter (used wcstombs function). Seems everything works ok;)

Re: does wodSFTPdll support unicode?

by wodSupport, Tuesday, April 12, 2005, 11:05 (7167 days ago) @ Justas

It does? It shouldn't! :)

Do you use API library (wodSFTPdll) or ActiveX? In ActiveX that would make sense, but you said you use wodSFTPdll.