I created the following minimal LaTeX document:
\documentclass{article}
\usepackage[ansinew]{inputenc}
\begin{document}
$–A + B$
\end{document}
It throws a warning 'LaTeX Warning: Command \textendash invalid in math mode on input line 6'. Without the minus symbol before the A everything works fine.
Question: Why does the minus symbol throw such a warning? I am confused.
System: Windows 8 64 Bit Pro, latext Miktex release with Texniccenter.

ansinewbecause I always thought Windows uses this one, too. Should I better useutf8on Windows? – John Threepwood Nov 28 '13 at 07:28inputencdepends on the editor being used, not the language. It should always match the character encoding the.texfile has been saved as. – daleif Nov 28 '13 at 08:37