# Problem with glossary text and accented letters [closed]

I'm experiencing a strange behavior with the glossaries package, I have these lines in the header of my document:

``````\usepackage[toc]{glossaries}
...
\usepackage[italian]{babel}
...
\makeglossaries
``````

Then, in the text I have items such as

``````\gls{stivare}
``````

And if I write in the glossary the "stivare" item this way:

``````\newglossaryentry{stivare}
{
name=stivare,
description={Mettere in  stiva. ... è sempre stato uno dei fattori più ...}
}
``````

I.e., using "è" and "ù" letters, I get a compile error:

``````) (./FameInAltoMare.gls [26]
! Missing \$ inserted.
<inserted text>
\$
l.10 ...entrycounter[]{page}\glsnumberformat{11}}}
%
?
``````

While if I write the same item using the "`e" and "`u" the compilation ends successfully.

Any clues?

Thank you

## closed as off-topic by egreg, user13907, cfr, AboAmmar, Mike RenfroAug 29 '15 at 13:18

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome! Hard to say without a complete minimal example we can compile to reproduce the error. But do you have `\usepackage[utf8]{inputenc}` and `\usepackage[T1]{fontenc}`? If you are using LaTeX or pdfLaTeX (rather than one of the newer engines), you should. – cfr Aug 28 '15 at 16:26
• yes, sorry, I forgot a snippet, I have \usepackage[latin1]{inputenc} (instead of utf8) but not the fontenc, could it be those lines? I'll have a go and let you know, thank you and I compile with pdflatex+bibtex+makeglossaries – atrent Aug 29 '15 at 9:17
• I'm voting to close this question as off-topic because the issue was due to inconsistent file encodings. – egreg Aug 29 '15 at 10:12