What file encodings and line endings should I use? - Overleaf...
If you are using pdfLaTeX (i.e., running LaTeX using the pdfTeX engine), which is the default on Overleaf, you can typeset most accented letters and some symbols directly if you include this\usepackagecommand in the preamble of your document: ...