# MikTex doesn't accept “ù” character [closed]

I'm using MikTex and pdfLatex. In the preamble I'm using

   \usepackage[latin1]{inputenc}


because I'm writing in italian, and the text is coded in UTF-8.

This works nicely for every type of accented char [à,è,é,ì,ò] except than ù. Whenever I try to output a pdf I receive the well-known $missing error if there's a "ù" around. What can I do? Error message: ! Missing$ inserted.
<inserted text>
\$
l.56 ...filo Twitter @MiurSocial non pubblica più
da aprile 2012,


I'm pretty sure there are no underscores or other special chars, and this happens only with ùs.

Thanks!

EDIT: if i use utf8 instead of latin1 I get this:

! Package inputenc Error: Unicode char \u8:� not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
...

l.2 ...abbreviazione di electronic government, �
l'insieme di tutte le pr


code in the preamble:

\documentclass[a4paper, 12pt, openright,twoside]{book}
\usepackage[textwidth=15cm,textheight=21cm]{geometry}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{svg}
\graphicspath{ {immagini/} }
\pagestyle{fancy}
\fancyfoot{}
\fancyhead[CE]{\bfseries\leftmark} %C = center O= odd  E=even
\fancyhead[CO]{\bfseries\rightmark} %C = center O= odd  E=even
\fancyfoot[C]{\thepage}
\usepackage[section]{placeins}
\usepackage{booktabs}
\usepackage{fancybox}
\usepackage{tabulary}
\newcommand{\miur}{Ministero Italiano dell' Università e della ricerca}
\begin{document}
\input{cap1.tex}
\input{cap2.tex}
\input{cap3.tex}
\input{cap4.tex}
\input{cap5.tex}
\end{document}


The text giving problems has been directly input from keyboard and it's encoded in UTF-8. Now I tried with encoding it as ISO-8859-1 and it works.

## closed as unclear what you're asking by egreg, Speravir, mafp, Peter Jansson, cmhughesFeb 6 '14 at 23:27

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.

• Try to use utf8 instead of latin1. – Sigur Oct 28 '13 at 16:36
• So, please, try to put here a simple complete code showing the problem. Maybe you are loading some other fonts or packages. Are you using \usepackage[T1]{fontenc}? – Sigur Oct 28 '13 at 16:59
• > \usepackage[latin1]{inputenc} > > because I'm writing in italian, and the text is coded in UTF-8. > > This works nicely for every type of accented char [à,è,é,ì,ò] except than ù. No if that worked then your existing document is encoded in latin1 (iso-8859-1) not UTF-8. The declared encoding has to match the actual encoding, or you get an error. – David Carlisle Oct 28 '13 at 17:13
• I was about to say the same as @DavidCarlisle, I believe you have saved your document in the wrong encoding. Try making sure you have used UTF8 – Mario S. E. Oct 28 '13 at 17:30
• Perhaps my answer to this question helps. – Thorsten Donig Oct 28 '13 at 18:04