On Wed, Dec 29, 2021 at 03:22:13PM +0200, Eli Zaretskii wrote: > > Date: Wed, 29 Dec 2021 13:35:05 +0100 > > From: Patrice Dumas <[email protected]> > > > > For Info and Plaintext, I propose to remove the check on documentencoding > > being set or not, leaving two possibilities > > * --enable-encoding (the default), try to output unicode points encoded > > characters for every output, be it accents like @'e, @-commands like > > @l{} or dashes and quotes. > > * --disable-encoding use ascii everywhere > > What about @documentencoding that is not UTF-8?
This plan is for any @documentencoding, when I write 'try to output' it actually means to output encoded characters if they are available in the output encoding (which needs not be the same as @documentencoding). In practice, if th eoutput encoding is 8 bits, it means dashes and quotes remains as is and for accents and other commands there is a list (for iso8859_1, iso8859_15, iso8859_2 and koi8) of how unicode points map to the encodings to avoid outputting characters that will lead to an error later when perl decodes to the 8 bit encoding. -- Pat
