I am french and I would like to manage accented characters when using Stringstrings commands.
Here is a LaTeX Minimal Example to show you my issue :
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{stringstrings}
\begin{document}
\edef\str{Ô opiniâtre salubrité}
1 -- \str
2 -- \substring{\str}{1}{$}
\end{document}
When I compile, I get this :
I have tried several things, including this one :
\encodetoken{\str}
It works and then, I get : "Ô opiniâtre salubrité" but I can't intervene on the chain and modify it. The string seems frozen. For example, using a statement like this :
\Treatments{}{}{}{}{}{0} \substring{\str}{1}{$}
do not delete spaces at all.
Is there a way out of this?
Thank you very much !




\definstead of\edefseems to work. – Marijn May 03 '22 at 09:02