I have an issue that only happens when I try to sepparate my latex code in many subfiles. If I let all the "special characters" in the main file, there's no problem, but if I move them to a subfile and then import it. It cannot compile because of an error described by the compiler as:
pdflatex> ! Package inputenc Error: Unicode char \u8:ícl not set up for use with LaTeX.
This is a minimal example that works:
\documentclass[a5paper,oneside]{amsart}
\usepackage[utf8]{inputenc}
\begin{document}
cíclico
\end{document}
This is a minimal example that doesn't work:
\documentclass[a5paper,oneside]{amsart}
\usepackage[utf8]{inputenc}
\begin{document}
\input{file1.tex}
\end{document}
Where file1.tex only contains:
cíclico