Accent in FieldName gives FPDF-Merge Error: field *** not found
raphamotta opened this issue · 1 comments
raphamotta commented
Hello,
I have an pdf and got field name from pdftk as "FieldName: 02_Prescrição
"
So, several field names works, but thin in particular gives a "FPDF-Merge Error: field 02_Prescrição not found" error. I think it's because the accent in "Prescrição".
Note that "02_Prescrição
" tuns in "02_Prescrição".
I can't change the name field. SO, how to fix it?
NithoPamc commented
Hi,
My response is late but I had the same problem. You must use the real name instead of the name returned by pdftk.
I then had a second encoding problem which may be specific to me.
My source is in utf-8. Despite this I had to work in ISO for the field to be found:
$fields = array (
utf8_decode ('02_Prescrição') => 'value'
);
...
$pdf-> Load ($fields, false);