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?
2 Answers
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.
-
I need
xelatex
because i usefontspec
package and some packages that handle unicode. Is there any good reason to switch topdflatex
or should I stay withxelatex
?– TeddyAug 11, 2012 at 14:01 -
I either can't disable this by
\usepackage[unicode=false]{hyperref}
or\usepackage{hyperref} \hypersetup{unicode=false}
.– TeddyAug 11, 2012 at 14:14 -
Also with
\usepackage[pdftex]{hyperref}
it complains thatxetex
driver only supports unicode. Seven hells..– TeddyAug 11, 2012 at 14:20 -
14Try
\usepackage[unicode,pdfencoding=auto]{hyperref}
just before\begin{document}
. Aug 11, 2012 at 15:29 -
You don't need
xelatex
withfontspec
, you could also uselualatex
. This is what I use and have no problem withmoderncv
.– raphinkAug 11, 2012 at 22:36
I had the same problem, when using options like pdftitle
, pdfkeywords
, . . .
I changed to use pdfinfo
and now everything is workng fine. the syntax is like this:
\hypersetup{
pdfinfo={
Title={My Title},
Subject={My Subject},
NewKey={Foobar},
% ...
}
}
for more info you can refer to hyperref
documentation page 11.
** WARNING ** Failed to convert input string to UTF16...
and it's printed only once when compiling a document by first time. It's being printed 11 times when document is being compiled twice or more. If I delete *.aux, *.log and *.out files and again doxelatex template.tex
- it backs to previous state (prints error about UTF16 only once).