Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
10.4k views
in .NET FTP by
I'm trying to transfert a text file (Ascii mode so) from an AS400 to a PC with VB.net and edtFTPNet 1.1.3.
When the text file to transfer contain an accent (

3 Answers

0 votes
by (161k points)
Try this - if it works for you, we'll incorporate into the next version.

http://www.enterprisedt.com/forums/viewtopic.php?t=316

I'm trying to transfert a text file (Ascii mode so) from an AS400 to a PC with VB.net and edtFTPNet 1.1.3.
When the text file to transfer contain an accent (
0 votes
by
I've found one solution to my problem.
I'm now using the get method with the array of byte, and I've wrote a little sub to write the array to disk as text file (convert each ascii code to character).
I'not using any fileParser.

St
0 votes
by (161k points)
Another solution may be to modify FTPControlSocket.InitStreams().

Try changing

Encoding.GetEncoding("US-ASCII")

to

Encoding.GetEncoding(""utf-8")


I've found one solution to my problem.
I'm now using the get method with the array of byte, and I've wrote a little sub to write the array to disk as text file (convert each ascii code to character).
I'not using any fileParser.

St

Categories

...