Re: [RFC 959] FTP in ASCII mode

Peter Dambier <peter@peter-dambier.de> Mon, 20 February 2006 16:25 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FBDrB-0001WF-8g; Mon, 20 Feb 2006 11:25:49 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FBDr9-0001W4-GE for ietf@ietf.org; Mon, 20 Feb 2006 11:25:47 -0500
Received: from mail.gmx.de ([213.165.64.20] helo=mail.gmx.net) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1FBDr8-0004Vo-1U for ietf@ietf.org; Mon, 20 Feb 2006 11:25:47 -0500
Received: (qmail invoked by alias); 20 Feb 2006 16:25:44 -0000
Received: from p54A7E923.dip.t-dialin.net (EHLO peter-dambier.de) [84.167.233.35] by mail.gmx.net (mp020) with SMTP; 20 Feb 2006 17:25:44 +0100
X-Authenticated: #8956597
Message-ID: <43F9ED6A.5090901@peter-dambier.de>
Date: Mon, 20 Feb 2006 17:25:14 +0100
From: Peter Dambier <peter@peter-dambier.de>
Organization: Peter and Karin Dambier
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040921
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ietf@ietf.org
References: <802d52a30602200524w560fe214n67cb074f5f6f8332@mail.gmail.com>
In-Reply-To: <802d52a30602200524w560fe214n67cb074f5f6f8332@mail.gmail.com>
X-Enigmail-Version: 0.76.8.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 0a7aa2e6e558383d84476dc338324fab
Subject: Re: [RFC 959] FTP in ASCII mode
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: peter@peter-dambier.de
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
Errors-To: ietf-bounces@ietf.org

Once upon a time the used to be computers speaking ASCII or EBCDIC. The
ASCII computers where unix mostly. The EBCDIC where mainframes. ASCII
mode meant that EBCDIC card decks with fixed lenght of mostly 80 characters
per line would be translated into variable lenght records terminated by
CR/LF before sending them. Also they would be translated from 8 bit
EBCDIC code to 7 bit ASCII code. Unix would have to replace their single
LF character by a CR/LF sequence before sending. The result could be
punched to 7 bit punched tapes automatically adding a parity bit to the
tape. Or you could print it directly on an ASR-33 terminal.

Binary means take it as it is. Dont touch the formatting or character
set.

As the ASR-33 terminal did not know UTF-8 it is not a good idea to use
ASCII mode for UTF-8. But you can send it only to systems who understand
UTF-8.

Regards
Peter and Karin Dambier


Sandeep Srivastava wrote:
> Hi,
> 
> RFC 959, says that FTP supports two modes to transfer files -- ASCII and 
> Binary. Now, if I have a UTF-8 (or any other encoding) encoded text 
> file, containing, say Japanese characters, would it be correct to choose 
> the transfer mode as ASCII? And if I choose the transfer mode as ASCII, 
> is there a possibility that the content of the file on the receiving end 
> is garbled?
> 
> In a nutshell, does ASCII mode means that only ASCII encoded text files 
> are supported?
> 
> Thanks,
> Sandeep.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ietf mailing list
> Ietf@ietf.org
> https://www1.ietf.org/mailman/listinfo/ietf


-- 
Peter and Karin Dambier
The Public-Root Consortium
Graeffstrasse 14
D-64646 Heppenheim
+49(6252)671-788 (Telekom)
+49(179)108-3978 (O2 Genion)
+49(6252)750-308 (VoIP: sipgate.de)
mail: peter@peter-dambier.de
mail: peter@echnaton.serveftp.com
http://iason.site.voila.fr/
https://sourceforge.net/projects/iason/


_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www1.ietf.org/mailman/listinfo/ietf