# XeLaTeX, fontspec, Arial (TTF), umlauts?

How do I get german umlauts in a PDF using Arial TT-Font and XeLaTeX or luaLaTeX?

The following example produces a box instead of "ü":

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\setmainfont{Arial}

\begin{document}
\section{Einführung}
Text.
\end{document}

-
Don't use inputenc with xelatex. – Ulrike Fischer Jun 13 '12 at 11:11
– matth Jun 13 '12 at 13:02
Why the downvote? Please explain! – topskip Jun 13 '12 at 13:02

You should take a look at the output (log) of XeTeX/LuaTeX:

(/opt/texlive2011/texmf-dist/tex/xelatex/xunicode/xunicode.sty

@AlexG you can still use the \"a commands or if you load babel you can use the shorthand "a for ä. With pure ascii, you couldn't key in any umlaut directly (ascii does not define them). You probably have latin1 or any other 8 bit encoding. You can try the package luainputenc although I strongly, strongly, strongly and strongly advice against it. (But then I actually ask myself why you have the utf8 parameter for the inputenc package. – topskip Jun 13 '12 at 11:45
@AlexG luainputenc is really only a last resort. I am not sure if it works in all cases. – topskip Jun 13 '12 at 12:52