rhaseven7h / utf8-fdf-generator

PDF Form's FDF files support for UTF-8 (Generator)
11 stars 12 forks source link

Escaping of values and fixes a bug with UTF-16 Chars #2

Open jbecwar opened 7 years ago

jbecwar commented 7 years ago

Hi, Thank you so much for this library, it saved me a lot of time. We ran in to a bug when a user submitted data with a ( or ). After some research we found that in the fdf files, we need to escape them. When we escaped them the UTF-16 converter ended up causing the fdf to get saved with binary chars in them, since the write file saves as a UTF8 file by default.

I made some small changes and the now the (, ), and \ are escaped properly.

Thanks again, -James

rhaseven7h commented 2 years ago

Hi @jbecwar ! I believe it's been way too much time since you sent this, but life is life, and I just noticed it. Added some code review comments, in case you're still using this! Regards, -GM