Am 03.12.2017 um 10:19 schrieb Knut Petersen:
[...] and/or does anyone know a solution of the "temorarily disable inputenc"
problem?
I found out how to temporarily disable inputenc:
\usepackage[utf8]{inputenc}
% \stopUTFeight temporarily disables inputenc to handle 2-byte utf8 codes
% \restartUTFeight temporarily reenables inputencs handling of 2-byte utf8
codes
% \savedUTFviii contains the original definition of \UTFviii@two@octets
\makeatletter
\let\savedUTFviii\UTFviii@two@octets
\def\stopUTFeight{\gdef\UTFviii@two@octets##1##2{##1\string##2}}
\def\restartUTFeight{\global\let\UTFviii@two@octets\savedUTFviii}
\makeatother
Of course that does not handle the longer codes, but adding those is easy if
they are needed.
Knut