Recently, I updated to MiKTeX 2.9, and after this the xelatex compiler fails when compiling documents with the fontspec
package included. In other words, the following code won't compile:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Cambria}
\begin{document}
Hello world!
\end{document}
I don't know what has changed when I updated to MiKTeX 2.9, but I get the following build log message in TeXnicCenter:
("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu11mr.fd") xelatex.exe: Windows API error 1113: No mapping for the Unicode character exists in the target multi-byte code page.
The same thing seems to be the problem when compiling in TeXWorks.
I've tried reinstalling MiKTeX 2.9 to make sure everything was up to date, but this did not help.
Does anyone have any idea how I can solve this problem? Answers are much appreciated.
EDIT:
Here's a list of specifics:
- All outdated packages have been updated, and the file name database has been refreshed.
- I do get a log file when compiling. The only file I don't get is the pdf output.
- The operating system I'm using is Windows Vista.
- The
xelatex --no-pdf file
cmd (terminal) command gives the same error message as quoted above. - My user name does contain a non-ASCII character. However none of the characters are outsude the Latin-1 charset.
- No other file or folder has a non-ASCII character.
xelatex --no-pdf file
? Which windows are you using?