I am writing in French and there are many accents. I can see them in the whole document except in the table of contents.
When I compile and preview my document in Texmaker, I can see the french accent in the table of contents:

But when I check the actual pdf that is produced with Adobe Acrobat Reader or Preview/Aperçu (Mac OS X 10.6.8 default pdf viewer), the accents are replaced by special characters as shown on the screenshot below:

This is a part of my preamble:
\documentclass[12pt,a4paper,twoside,french]{article}
\usepackage{mathptmx}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{prettyref}
\usepackage{hyperref}
\usepackage{babel}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
The TOC file entries look like:
\select@language {french}
\contentsline {section}{Introduction}{1}{section*.2}
\contentsline {section}{\numberline {1}Contexte actuel}{2}{section.1}
\contentsline {subsection}{\numberline {1.1}Contexte socio-\'economique}{2}{subsection.1.1}
How can I fix it?
\usepackage[utf8]{inputenc}. See http://tex.stackexchange.com/a/34608/13670 – Cylian Apr 01 '13 at 11:57\'{e}and I have to write around 20 pages like that. There are too many accents to type. Besides, I get this error! Package inputenc Error: Unicode char \u8:�de not set up for use with LaTeX.– esmitex Apr 01 '13 at 12:08\usepackage{lmodern}like in http://stackoverflow.com/questions/464140/embedding-fonts-in-pdf-from-latex-source-with-pdflatex – Vincent Nivoliers Apr 01 '13 at 13:56\usepackage{mathpmx}with\usepackage{amsfont}just by deleting the second one it would fix the accent problem and keep the font as "Times News Roman" – esmitex Apr 01 '13 at 14:27