%\title{How to use Spanish accents in LaTeX}
% From http://tex.stackexchange.com/a/78270/23931
\documentclass[11pt, spanish]{report}
\usepackage[spanish]{babel}
\selectlanguage{spanish}
\usepackage[utf8]{inputenc}
\begin{document}
¡Hola! ¿Cómo estás ?
\end{document}