Consider the following example, in which the sentence Ceci est un résumé. is written into the file \jobname.mytmp and then being read back.
\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
\begin{VerbatimOut}{\jobname.mytmp}
Ceci est un résumé.
\end{VerbatimOut}
\input{\jobname.mytmp}
\end{document}
However, this cannot be compiled with pdflatex, as one would get Package inputenc: Invalid UTF-8 byte sequence. Further investigation shows that \jobname.mytmp is not coded in UTF-8 but rather in "Windows 1252" (this is guessed by vscode, personally I don't know what this is). Is there a fix to this?