Why are the character with accent not recognized ?
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{comment}
\includecomment{withsolution}
\begin{document}
\begin{withsolution}
à
\end{withsolution}
\end{document}
returned error:
! Paragraph ended before \UTFviii@three@octets was complete.
If I put it outside the comment environment, it works. Thanks for the help.
withsolutionenvironment is an accented letter. Just putting a\relax(or even a simple space, which is ignored anyway) in front of it makes it work; no idea as why, though... – campa Oct 12 '15 at 10:31