I am trying to associate sequence of characters that can contain special symbols (accents, dollars, and in particular inputs in utf8) to some content. This is to be used with htlatex. Accents yield problems as shown in the following example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\expandafter\def\csname è\endcsname{an acentuated token}
\end{document}
This compiles fine with pdftex, but using htlatex, I obtain:
! Missing \endcsname inserted.
<to be read again>
\protect
l.6 \expandafter\def\csname è
\endcsname{an accentuated token}
?
I was not able to figure out where was the problem with htlatex (indeed \IeC has a different definition, but simply correcting it does not suffice).
I would also understand answers like `you should not even think about constructing token with weird symbols'. But then, what ways are available for maintaining tables that with such kind of entries?