On 12/4/2017 9:30 AM, Knut Petersen wrote:
Am 03.12.2017 um 15:01 schrieb Ulrike Fischer:
I don't know which problem you have here. Both variants in the
following document writes utf8:
Yes. But you do use \unexpanded:
\immediate\write\testb{\unexpanded{Grüße}}
If an environment is implemented as in the attached MWE it is impossible
to use \unexpanded ...
or the solution to the problem is beyond my knowledge of TeX.
i have no clue what your code is supposed to be maybe something
\def\oneline{Grüße}
\unexpanded\expandafter{\oneline}
or
\detokenize\expandafter{\oneline}
so far my experience with tex is that there's always a solution
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------