# Okular doesn't recognize text [duplicate]

I am writing articles using Kile on Windows 7. I have a problem with search in the output file. For some reason, Okular doesn't recognize the text. Trying to copy something with the option text selection tool returns rubbish, for example this is the copypaste of the word 'Conditionally': ❈♦♥❞✐t✐♦♥❛❧❧2, and this is the copypaste of the word 'some': s♦♠❡.

How do I make Okular to correctly recognize a piece of text?

Edit. This is a working example:

\documentclass[11pt]{article}

\usepackage[T1]{fontenc}

\begin{document}
Minimal example
\end{document}


The output as a PDF file looks fine, but copying it gives ▼✐♥✐♠❛❧ ❡1❛♠♣❧❡. I use PDFLaTeX + ViewPDF, the selected configuration for the tool ViewPDF is Okular unique.

## marked as duplicate by Martin Schröder, Mensch, Claudio Fiandrino, Mico, Maarten DhondtJun 15 '16 at 18:53

• It would help if you would post a mwe for us to look at and try and reproduce your problem. Additionally know what you use to compile your doc would also be useful. That being said, this looks like an encoding problem and adding \usepackage[T1]{fontenc} to your preamble may fix your issue. – ArTourter Jun 7 '16 at 22:08
• For what it is worth, it works for me in Okular, compiling the original MWE in Kile using pdfLaTeX. It also works if I remove fontenc as well. It works no matter what. It's only ASCII, after all, so this isn't surprising. – cfr Jun 8 '16 at 1:08