[texworks] inputenc error

Vladimir Lomov lomov.vl at yandex.ru
Sat Jun 8 10:41:07 CEST 2019


Hello,
** Reinhard Kotucha [2019-06-08 06:27:28 +0200]:

> On 2019-06-07 at 15:56:36 +0000, Taylor, P wrote:
> 
>  > [...] Are you in a position to advise which variant of \usepackage
>  > [latin1] {inputenc} / \usepackage [latin9] {inputenc} / \usepackage
>  > [latin$n$] {inputenc} might best address this issue ?
> 
> The short answer is "none of them" in favor of
> 
>   \usepackage[utf8]{inputenc}
> 
> If you are really forced to use old-fashioned 8-bit input encodings,
> in most cases you would prefer latin9 (ISO 8895-15) because this makes
> more frequently used characters accessible directly from Western
> European keyboards.  For other keyboards one needs other input
> encodings, for instance latin5 for Russian, viscii for Vietnamese,...

For Russian:

  cp1251, cp866, koi8-r, latin5 (ISO 8895-5)

in order of preference decreasing (I usually recommend to use UTF-8). In
some cases the first one is the only possible choice (eg, for amsart class).

> For ISO 8895 specifications consult
> 
>   https://en.wikipedia.org/wiki/ISO/IEC_8859
> 
> LaTeX converts all non-ASCII characters to LICR (LaTeX Internal
> Character Representation) so that all non-ASCII characters are
> assigned to control sequences.  Thus the choice of a paricular input
> encoding is just a matter of convenience.  If you want to allow users
> to use different input encodings, all strings in macro packages should
> be in LICR.
> 
> The best choice today is definitely UTF-8 and I strongly recommend to
> use it and to avoid national character sets due to their limitations.
> 
> Phil, I'm aware that I don't have to tell you what Unicode is good
> for but you asked on a public mailing list.  Thus the more verbose
> answer.
> 
> Regards,
>   Reinhard
> 
> --
> ------------------------------------------------------------------
> Reinhard Kotucha                            Phone: +49-511-3373112
> Marschnerstr. 25
> D-30167 Hannover                    mailto:reinhard.kotucha at web.de
> ------------------------------------------------------------------

---
WBR, Vladimir Lomov
 

-- 
	Catching his children with their hands in the new, still wet, patio,
the father spanked them.  His wife asked, "Don't you love your children?"
"In the abstract, yes, but not in the concrete."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20190608/b9cb25a7/attachment.sig>


More information about the texhax mailing list