[Tex/LaTex] TeX Live 2012, XeLaTeX, moderncv, error “Failed to convert input string to UTF16”

hyperrefmoderncvxetex

I'm getting this error from moderncv version 1.1.1. With earlier version everything was ok and I did not make any changes to my tex document. I don't use any special font. File encoding is set to utf-8. What is the problem?

Best Answer

moderncv loads hyperref with the option unicode. This leads to the warning as you can try with this minimal example:

\documentclass{article}
\usepackage[unicode]{hyperref}
\hypersetup{pdfkeywords   = {test}}
\begin{document}
abx
\end{document}

The warning is described in section 6 of readme.pdf from hyperref. The best would be if moderncv would not use the option when xelatex is used.