utf-8 characters not supported ?

i have these file:

$ cat output_test_error_0.fdf.txt | grep Page1 -A25 | grep -A 2 Emp_Legal -B1
<<
/T (txtF_Emp_Legal[0])
/V (à, ç, â, ã, é, Õ, nº ’)
>>
$ file -bi output_test_error_0.fdf.txt
application/vnd.fdf; charset=utf-8

when I fill the forms:

java -jar dist/pdftk-all.jar dist/pdf_clean.pdf fill_form output_test_error_0.fdf.txt output /tmp/tmpujgjxng0 flatten need_appearances

the pdf it's filled these:

image

if I encode to latin-1, iso-8859-1 it works but getout characters like ’

Edited Mar 21, 2022 by zodman
Assignee Loading
Time tracking Loading