Codification when copy/paste from PDF

Hi!

I have a very weird error with codification.

Everytime I try to copy and paste a text from a PDF document the result is ? (question marks) instead of special ccaracters.

For example:

instead of “cão” I got “c?o”

If I type the word by hand the codification is good ans show what is correct. Only when I copy a text from a PDF file (for example this: http://www.gave.min-edu.pt/np3content/?newsId=81&fileName=biologia_e_geologia702_pcf1_07_v1.pdf) i got ? instead of the ã or é or ç or other special characters.

Since the form save the data do a database I try to see what satys there:

when the letter “é” is copyed from PDF it shows in the DB “é”

when I type the letter “é” it shows in the DB “é”

Why this difference? How can I avoid this from happening?

Why when this word is loaded into a textarea is showind correctly but when I put it inside a div it is not?

Thanks for any help :slight_smile: