> Date: Sat, 01 Feb 2014 19:31:14 +0200 > From: Eli Zaretskii <[email protected]> > Cc: [email protected], [email protected] > > > Date: Sat, 1 Feb 2014 17:07:16 +0000 > > From: Gavin Smith <[email protected]> > > Cc: Karl Berry <[email protected]>, [email protected] > > > > On Sat, Feb 1, 2014 at 5:00 PM, Eli Zaretskii <[email protected]> wrote: > > >> What if a file is not in UTF-8 and doesn't specify its encoding? Is it > > >> likely, for example, that there are many files in ISO-8859-1 which > > >> don't specify their encoding? > > > > > > That could happen, yes. But I don't see any bad outcome for that with > > > the rest of your code in place. Do you? > > > > > > The way I see it, iconv will report an error, and you punt and let the > > > original characters hit the glass, right? > > What if a sequence of bytes intended to encode ISO-8859-1 characters > > happens to correctly represent UTF-8 characters? > > This cannot happen, by virtue of the UTF-8 definition and the fact > that ISO-8859-1 is a single-byte encoding.
Except for ASCII characters, that is.
