Test special characters in PDF form fields

17 February 2026

A close view of hands typing on a laptop keyboard.
Illustrative photograph. Cropped and resized. Photo: “Computer Laptop Typing” — Tim Sullivan / NegativeSpace. · CC0 1.0

A surname looks right while the applicant types it, but an accent is gone in the receiving system. Follow the same fictional name through entry, reopening, printing and export. Recording the first point of divergence helps distinguish a stored-value problem from a rendering or import problem.

Set a comparison rule before testing

Use the invented example Éléonore O'Connor-Smith. Record the expected characters in a UTF-8 text file, including the ordinary apostrophe and hyphen. If curly apostrophes are supported, add a separate case using one. A typographic apostrophe and a straight apostrophe are different characters, even if staff would read them alike.

An accented letter may have a precomposed representation or a base character followed by a combining mark. These can be canonically equivalent under Unicode normalisation. If a system promises exact preservation, compare the original code points first. If the receiving system applies a documented normalisation policy, record it and compare under that policy as a second check. Removing accents or replacing punctuation is a different operation. Unicode Consortium guidance on normalisation

Verify the surname through the full form workflow

StageCheck with the same test entry
TypedConfirm the field accepts the entire name, including each punctuation mark. If the reader exposes the raw field value, capture it as well as the visual result.
Saved and reopenedSave the PDF, close it and open the same bytes again. Compare the actual field value and inspect the appearance for truncation or missing glyphs.
PrintedCheck the intended paper or print preview for clipping, squares and missing accents. A correct printed shape does not establish the encoded value.
ExportedInspect the decoded text value in the actual export format, then the value after import into the receiving system. Compare code points before inferring character loss from display alone.

For example, the text sequence in a JSON file might contain an escaped character that decodes to the original accented letter. Compare the decoded value. Conversely, if the exported name becomes Eleonore OConnor-Smith, both the accents and apostrophe have been lost, even if the importer accepts the record.

The form test matrix can hold the expected and observed result for a reader. Add the test string, form version, reader, export route and first failing stage. Keep the original synthetic expected string for repeating the check after a change.

Close the specific failure

If the saved value is correct but the printed name clips, investigate the field appearance, font and available width. If print is correct but exported data changes, inspect field mapping, text encoding and any transformation on import. Rerun all four checks after a fix, using synthetic records instead of real applicants’ personal data.

Part of the A test matrix for saving and reopening a fillable PDF guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).