Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19501

Re: URLDownloadToFile

Path csiph.com!weretis.net!feeder7.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Greg <greg@alicie.com>
Newsgroups it.comp.lang.visual-basic
Subject Re: URLDownloadToFile
Date Thu, 10 Jan 2019 12:48:55 +0100
Organization solani.org
Lines 23
Message-ID <q17bfb$u22$1@solani.org> (permalink)
References <q14s0t$9hu$1@solani.org> <q15bmv$4er$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding 8bit
X-Trace solani.org 1547120940 30786 127.0.0.43 (10 Jan 2019 11:49:00 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 10 Jan 2019 11:49:00 +0000 (UTC)
Cancel-Lock sha1:Ys6idJuook9ELPOKoMViRC9ax8E=
X-Newsreader MesNews/1.08.06.00-it
X-User-ID eJwNyrEBwDAIA7CXUrANnFNI8/8JzaBNdD2agCjw8KBTS+WR2nb5FPpNl2HfiK9zJS1YS7KaH/4zD84=
Xref csiph.com it.comp.lang.visual-basic:19501

Show key headers only | View raw


Il 09/01/19 18:42:09 Franz_aRTiglio ha scritto:

> Succede se hai la connessione ftp con un serfver *nix in modalità testo
> e passi un file txt, il sender ti tratterà come un terminale e (vado a
> memoria) cambierà i CR in LF; impostando la connessione come  binary
> dovresti risolvere, oppure cambia l'estensione del file in modo che NON
> sia .txt, in questo modo il sender non dovrebbe pasticciarlo.
>
> come estrema soluzione puoi scansionare il file e cambiare tutti i
> caratteri LF in CRLF.

 'dwType = FTP_TRANSFER_TYPE_ASCII
  dwType = FTP_TRANSFER_TYPE_BINARY

Ho cambiato la connessione come suggerito ma senza ritultati.
E allora, siccome il file lo apro col programma di default (Notepad) ho provato a vedere come lo visualizza Notepad++ e 
ho scoperto che lo visualizza bene, si vedono anche i simboli di ritorno a capo. Ho provato allora con altri programma 
presenti sul pc, Word e WordPad, e anche questi visualizzano il file correttamente con i ritorni a capo. Solo Notepad 
lo vede in altro modo.
Strano, no?

-- 
Greg

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

URLDownloadToFile Greg <greg@alicie.com> - 2019-01-09 14:12 +0100
  Re: URLDownloadToFile Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2019-01-09 18:42 +0100
    Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-10 12:48 +0100
      Re: URLDownloadToFile Gio <doc_tmn@yahoo.it> - 2019-01-10 15:09 +0100
        Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-10 20:04 +0100
          Re: URLDownloadToFile Gio <doc_tmn@yahoo.it> - 2019-01-11 17:23 +0100
            Re: URLDownloadToFile Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2019-01-11 18:09 +0100
              Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-11 22:07 +0100
                Re: URLDownloadToFile Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2019-01-11 22:34 +0100
                Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-12 18:09 +0100
                Re: URLDownloadToFile Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2019-01-12 20:39 +0100
                Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-13 10:25 +0100
                Re: URLDownloadToFile Gulp® <gulp@hotmail.it> - 2019-01-16 13:20 +0100
                Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-18 18:34 +0100
      Re: URLDownloadToFile Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2019-01-10 16:00 +0100
        Re: URLDownloadToFile Greg <greg@alicie.com> - 2019-01-10 19:39 +0100

csiph-web