I want to use xstring version 1.7. However ş and ç cause problems. For instance
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{xstring}
\begin{document}
\StrSubstitute{ş}{a}{b}
\end{document}
creates a long list of errors like this one:
! Illegal parameter number in definition of \@xs@arg@ii.
I am using the encoding package with the utf8 option and other characters like ö, ü and ğ are fine.
Edit: Here is the mwe spelled out in full.
pdflatex
, but works fine with the utf8 enginelualatex
. Can you switch to that instead?