I try to write with accents (spanish) but the pdf doesn't show any accented character. Here's my preamble:
\documentclass[11pt, spanish]{report}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
On the one hand if select 'UTF8 encoding' the .tex doesn't compile. On the other hand, if I select, for example, 'latin1 encoding' the .tex does compile, but there are no accentuated characters in the pdf.
I also have some .tex files from years ago which compiled and wrote accents but not now.
inputenc
option have to match you can use either encoding (or other encodings) as long as the option matches the actual encoding.