Issue with Accented Characters in PDF Form Fields (checkbox and radiobutton) #4971
Unanswered
dantard
asked this question in
Looking for help
Replies: 1 comment
-
|
Please provide an example file. Potentially an issue we need to fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm working with a PDF file that includes form fields such as radio buttons and checkboxes. After a few hours of debugging, I identified a specific issue: when the
on_statevalue of a checkbox or radio button contains accented characters, callingwidget.update()fails. That is:throws:
In my particular case, the
on_stateis set toS#ED, which is intended to represent “Sí”. This encoding seems to be the root of the problem.From what I can tell, this may be related to how the PDF library or underlying encoding handles non-ASCII characters in form field values.
Has anyone encountered a similar issue? If so, how did you handle or work around it?
Any insights or suggestions would be appreciated.
Thanks is advance.
Beta Was this translation helpful? Give feedback.
All reactions