# Xelatex bad encoding on output [closed]

I'm using the 'xgreek' package and compiling the document with XeLaTeX (xetex); I can't find out why toc, date etc. seems corrupted (should be in greek)

\documentclass[a4paper,oneside,titlepage,12pt]{article}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{Linux Libertine G}
\usepackage{graphicx}

\title{}
\author{}

\begin{document}

some dummy text
ελληνικα

\tableofcontents

\today

\end{document}


## closed as unclear what you're asking by Mensch, egreg, user13907, Zarko, darthbithMay 7 '16 at 0:16

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• You are using miktex? xgreek.sty if faulty there. A bug report has already been made. – Ulrike Fischer Oct 23 '15 at 20:43
• Is there any trick to solve it? – nikos Oct 23 '15 at 20:49
• You need a correct sty, get xgreek.dtx and xgreek.ins from CTAN, put them in some tempory folder and then compile xgreek.ins with latex to get the .sty. – Ulrike Fischer Oct 23 '15 at 21:15
• I overwitten the generated .sty over the old one, but it didn't work :( – nikos Oct 23 '15 at 21:34

• This is not an answer, unless you tell how you changed xgreek. – egreg Oct 26 '15 at 23:05