XeTeX: “Failed to convert input string to UTF16″

written by admin 2695 days ago. Last update at 2013-04-02 16:29:26. Categories tex. Tags , .

XeTeX allows me to hack away directly in Unicode. But what’s even more cool is that I can just use the fonts installed on my system without diving into some of TeX most darkest corners. However, when I compiled a larger document with xelatex, I faced some strange warnings like

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
** WARNING ** Failed to convert input string to UTF16...

and I had no explanation where this might come from. After a divide-and-conquer debugging session, it turned out that my input was just fine. It was rather a setting that caused this warning:

     unicode=true          %  causes UTF-16 warning

After having removed that line, all UTF-16 warnings are gone.