I am using LuaLaTeX on a Mac and I want to have my PDF in Calibri font. I have issues with Umlauts.
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Calibri}
\begin{document}
äöüß
\end{document}
This is the error message that I receive:
String contains an invalid utf-8 sequence.
If I escape the Umlauts, it works. However, his is very annoying and there should be an easier way to do it.
\"a \"o \"u \s{}
What package do I need to include to get Umlauts working without having to escape them?
\usepackage{luatextra} \usepackage[utf8]{luainputenc}
with no luck.% !TEX encoding = UTF-8 Unicode
" (everything between the quotes, but not the quotes) at the start of the file, save and retry. Then go at the “Source” tab in the Preferences and make sure “Unicode (UTF-8)” is selected from the drop down menu below “Encoding”.