Unicode String Models

Eli Zaretskii via Unicode unicode at unicode.org
Tue Sep 11 13:40:54 CDT 2018


> From: Hans Åberg <haberg-1 at telia.com>
> Date: Tue, 11 Sep 2018 20:14:30 +0200
> Cc: hsivonen at hsivonen.fi,
>  unicode at unicode.org
> 
> If one encounters a file with mixed encodings, it is good to be able to view its contents and then convert it, as I see one can do in Emacs.

Yes.  And mixed encodings is not the only use case: it may well happen
that the initial attempt to decode the file uses incorrect assumption
about the encoding, for some reason.

In addition, it is important that changing some portion of the file,
then saving the modified text will never change any part that the user
didn't touch, as will happen if invalid sequences are rejected at
input time and replaced with something else.


More information about the Unicode mailing list