i trying upload files created string text ftp server, i'm having encoding problem :
dim request system.net.ftpwebrequest = directcast(system.net.webrequest.create("ftp://ftp.myserver.com/" & now.day & now.month & now.year & now.hour & now.minute & ".txt"), system.net.ftpwebrequest) request.credentials = new system.net.networkcredential("myusername", "mypassword") request.method = system.net.webrequestmethods.ftp.uploadfile dim file() byte = system.text.encoding.ascii.getbytes(log) dim strz system.io.stream = request.getrequeststream() strz.write(file, 0, file.length) strz.close() strz.dispose() the log variable being string, tried ascii/utf8/unicode when converting string array of bytes, still, files uploaded ftp don't show lot of characters "é", can me please?
Comments
Post a Comment