Path: ...!news.mixmin.net!aioe.org!news.gegeweb.eu!gegeweb.org!.POSTED.arennes-656-1-313-215.w109-218.abo.wanadoo.fr!not-for-mail From: =?utf-8?Q?Vincent_Bela=C3=AFche?= Newsgroups: fr.comp.text.tex Subject: =?utf-8?Q?=C3=89crire?= un document avec plusieur codage =?utf-8?Q?=E2=80=A6?= Date: Tue, 25 Jan 2022 19:56:56 +0100 Organization: Gegeweb News Server Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.gegeweb.eu; posting-account="vbelaiche@orange.local"; posting-host="arennes-656-1-313-215.w109-218.abo.wanadoo.fr:109.218.81.215"; logging-data="27744"; mail-complaints-to="abuse@gegeweb.eu" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cancel-Lock: sha1:kDuN2ShePQDtQG94YLEWBeBT/RQ= sha256:6KzB6c8JsZpmcYRrBV+edVhf7irWjUsYOnovOdt4vmM= Bytes: 2646 Lines: 54 Bon, que ceux qui vont r=C3=A9pondre =C2=AB=C2=A0=C3=A9cris tout en UTF-8 e= t compile avec xelatex/lualatex=C2=A0=C2=BB quittent la salle, cette question ne les conce= rne pas. J'essaie d'=C3=A9crire un document qui pour le plus gros est en latin-9, ma= is quand lequel j'ins=C3=A8re un fichier qui est en utf-8 et qui comprend plusieurs rubriques. Je fais un truc du genre=C2=A0: --------8<-----------8<-----------8<-----------8<-----------8<------- % !TEX encoding =3D IsoLatin9 \documentclass{article} \usepackage[utf8,latin9]{inputenc} \begin{document} \tableofcontents \section{En fran=C3=A7ais} tr=C3=A2l=C3=A2l=C3=A2 \inputencoding{utf8}\addtocontents{toc}{\protect\inputencoding{utf8}} \input le-vilain-doc-en-utf8 \inputencoding{latin9}\addtocontents{toc}{\protect\inputencoding{latin9}} \section{Encore en fran=C3=A7ais} tr=C3=A2l=C3=A2l=C3=A2 \end{document} --------8<-----------8<-----------8<-----------8<-----------8<------- Et le le-vilain-doc-en-utf8.tex contient par ex. : --------8<-----------8<-----------8<-----------8<-----------8<------- % !TEX encoding =3D UTF-8 \section{Tr=C3=A2l=C3=A2l=C3=A2} C'est de l'UTF-8 o=C3=B9 dans l'=C3=AEle un tr=C3=A9sor. % Local Variables: % coding: utf-8 % End; --------8<-----------8<-----------8<-----------8<-----------8<------- Mais =C3=A7a ne fonctionne pas =E2=80=A6 j'ai un truc du genre=C2=A0: --------8<-----------8<-----------8<-----------8<-----------8<------- ERROR: Package inputenc Error: Invalid UTF-8 byte sequence. --------8<-----------8<-----------8<-----------8<-----------8<------- V. --=20