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


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

Re: URLDownloadToFile

Path csiph.com!news.fcku.it!bofh.it!tornado.fastwebnet.it!53ab2750!not-for-mail
Subject Re: URLDownloadToFile
Newsgroups it.comp.lang.visual-basic
References <q14s0t$9hu$1@solani.org> <q15bmv$4er$1@gioia.aioe.org> <q17bfb$u22$1@solani.org>
From Gio <doc_tmn@yahoo.it>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version 1.0
In-Reply-To <q17bfb$u22$1@solani.org>
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Language it
Content-Transfer-Encoding 8bit
Lines 38
Message-ID <gmIZD.1425$lb.741@tornado.fastwebnet.it> (permalink)
Date Thu, 10 Jan 2019 15:09:11 +0100
NNTP-Posting-Host 2.224.134.23
X-Complaints-To newsmaster@fastweb.it
X-Trace tornado.fastwebnet.it 1547129356 2.224.134.23 (Thu, 10 Jan 2019 15:09:16 CET)
NNTP-Posting-Date Thu, 10 Jan 2019 15:09:16 CET
Xref csiph.com it.comp.lang.visual-basic:19502

Show key headers only | View raw


Il 10/01/2019 12:48, Greg ha scritto:
> 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?
> 

Gli editor complessi intervengono nel rendering dei dati; le prove 
empiriche servono a poco.

Dovresti aprire il file di testo con un editor esadecimale e vedere se 
le linee finiscono con 0D o con 0D0A. In tutti i casi utilizzando la 
WritePrivateProfileString non puoi farci nulla.

Piuttosto... Perché la WritePrivateProfileString. Una open > write > 
close non bastava?


-- 
gio

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