Is it somehow possible to have utf8 characters (e.g. german umlauts) inside \edef
?
The following example document behaves fine if the umlaut is given directly as argument like \convertTest{Müller}
. The resulting output is "Mueller" after conversion.
If "Müller" is given via a \edef
like in \convertTest{\authorname}
, the resulting output is not as expected ("M.ller"), although the message on \newcommand
entry (before convert) is the same.
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{stringstrings}
\newcommand{\convertTest}[1]{
\message {before convert: #1}
\convertword[q]{#1}{}{ue}
\message {after convert: \thestring}
\thestring \
}
\begin{document}
\convertTest{Müller}
\edef\authorname{Müller}
\convertTest{\authorname}
\end{document}