[whatwg] Offline Web Apps

Křištof Želechovski giecrilj at stegny.2a.pl
Sat Sep 22 23:54:50 PDT 2007


Why would you need to preserve the technical details of the encoding, which
is entirely platform-dependent?
If you nevertheless want to upload the binary representation of text data,
just read the file as an octet stream.  Burdening the text interface with
support for such exotic demands is not a good idea.
Cheers,
Chris

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Maciej Stachowiak
Sent: Sunday, September 23, 2007 3:20 AM
To: Křištof Želechovski
Cc: whatwg at whatwg.org; 'Aaron Boodman'; 'Ian Hickson'; robert at ocallahan.org;
'Dave Camp'
Subject: Re: [whatwg] Offline Web Apps


On Sep 22, 2007, at 8:48 AM, Křištof Želechovski wrote:

> An arbitrary file is a sequence of bytes and it is up to the  
> application how
> these bytes are interpreted as characters.
> Moreover, a text file conceptually does not contain a string; it  
> contains,
> by convention, lines of text.  The result of reading a file as text  
> should
> be a sequence of lines, not a string, with the line breaking  
> characters
> removed.

Disagree. If the goal is to later upload the text file, then you want  
to preserve line endings and other special characters as-is.

Regards,
Maciej





More information about the whatwg mailing list