[-Replying to an old post-]
Nikos Alexandris schrieb:
[...]
> > How can I solve this?
On Mon, 2008-10-27 at 23:55 +0100, Uwe Stöhr wrote:
> Here's the reply from the hyperref developer:
>
> > Hyperref supports UTF-8 (inputenc's utf8 or utf8x).
> >
> > Otherwise you can use package stringenc:
> >
> > \documentclass{article}
> > \usepackage[unicode]{hyperref}
> > \usepackage{stringenc}
> > \usepackage[iso-8859-7]{inputenc}
> >
> > \begingroup
> > \renewcommand*{\pdfstringdef}[2]{%
> > \StringEncodingConvert\temp{\detokenize{#2}}{iso-8859-7}{utf16be}%
> > \xdef#1{\string^^fe\string^^ff\temp}%
> > }%
> > \hypersetup{%
> > pdftitle={...}% String in encoding ISO-8859-7
> > }%
> >\endgroup
>
> So the easiest way is to use for your LyX document the utf8 encoding in the
> documents settings under
> language.
The following works for the article document class. It does not work for
moderncv though. What is the reason?
--%<---
\usepackage{stringenc}
\usepackage[iso-8859-7]{inputenc}
\begingroup
\renewcommand*{\pdfstringdef}[2]{%
\StringEncodingConvert\temp{\detokenize{#2}}{iso-8859-7}{utf16be}%
\xdef#1{\string^^fe\string^^ff\temp}%
}%
\hypersetup{%
pdftitle={Βιογραφικό Σημείωμα},
pdfauthor={Νίκος Αλεξανδρής},% String in encoding ISO-8859-7
pdfsubject={Τι θέμα έχει αυτό το έγγραφο},%
pdfkeywords={λέξεις κλειδιά, λέξη κλειδί 1, λέξη κλειδί 2, λήμμα 3}
}%
\endgroup
--%<---
Nikos