I have this MWE
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{colortbl}
\usepackage{lmodern}
\usepackage{listings}
\usepackage{color}
\lstset{frame=tb,
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
breaklines=true,
breakatwhitespace=true,
tabsize=3,
extendedchars=true,
postbreak=\space, breakindent=5pt, breaklines,
literate={à}{{\`a}}1 {è}{{\`e}}1 {é}{{\'e}}1 {ê}{{\^e}}1 {ù}{{\`u}}1,
}
\begin{document}
\begin{lstlisting}
//...
API api = new API(url);
CultureIntermediaire cultureIntermediaire = resultat.getCultureIntermediaire();
//On affiche le nom de la méthode de travail du sol la plus érosive
\end{lstlisting}
\end{document}
Result

I have a problem : the "é" character is alone
Is there a way to tell listing to wrap when it find a point and not only a space. I want to get something like this :
CultureIntermediaire cultureIntermediaire = resultat.
getCultureIntermediaire();

listingsdoesn't really support UTF-8 characters in comments. Maybe usinglistingsutf8can help; however it requires the listing is in a separate file and is input with\lstinputlisting. – egreg Jul 04 '14 at 10:40