Fix Special Characters in Adobe Acrobat OCR Text Exported to JSON
Question details
Determine why text recognized from a PDF appears as special characters when converted to or displayed as JSON.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A user applies OCR to a PDF and passes the extracted text to a JSON conversion or display process.
- Observed behavior
- The text appears readable in Acrobat, but special characters appear in the JSON output or application display.
Identify how the OCR text is extracted from Acrobat and which application converts or displays it as JSON. Keep a short sample of the original text and its JSON output available for comparison.
Check whether JSON encoding or parsing changes the OCR text
Use this method when the text looks correct in Acrobat but changes after extraction or JSON conversion.
In Acrobat, select and copy a short passage into a plain-text editor. Compare it with the text immediately before your application serializes it to JSON.
Inspect the JSON output for sequences such as \u00e9. These are valid JSON escapes, not necessarily corrupted text; parse the JSON and check whether the resulting string displays correctly.
In the exporting and receiving applications, select UTF-8 where an encoding option is available. For JSON sent over HTTP, check the response headers and use a JSON parser rather than treating the response as an arbitrary byte string.
In your application or a debugging console, inspect the character codes before and after JSON serialization. For example, in Python, use repr(text) and [hex(ord(c)) for c in text] on a short sample to locate the stage where characters change.

Verify the OCR language in Adobe Acrobat
Use this method if the copied or extracted text is already incorrect before it reaches the JSON conversion.
Extract PDF Text with WPS Office for UTF-8 JSON Conversion
Use WPS PDF to recognize text from a scanned PDF, review the result in WPS Writer, and save it as text for conversion to JSON. The JSON conversion itself requires a separate script or application.
- 1. Open the scanned PDF: Open WPS Office and use Open to select the original scanned PDF.
- 2. Recognize the text: In WPS PDF, open the OCR tool and select the appropriate recognition language and pages. Run OCR; availability and menu names may vary by version or plan.
- 3. Review and save the text: Open or copy the recognized text into WPS Writer, check a sample against the PDF, and use File > Save As to save a plain-text file. Choose UTF-8 if an encoding option is offered.
- 4. Convert the text to JSON: Use a JSON serializer in your application to read the text as UTF-8 and write JSON as UTF-8. Parse the result and compare a sample with the text in Writer.

Frequently Asked Questions
Does a Unicode escape such as \u00e9 mean the OCR text is corrupted?
No. It is a valid JSON representation of a character. Parse the JSON and check the resulting string before treating the escape as an error.
How can I tell whether Acrobat or my application caused the problem?
Copy a short OCR passage from Acrobat into a plain-text editor and compare it with the text before JSON serialization and after JSON parsing. The first point where it changes helps identify the responsible stage.
Where can I change the OCR language in Acrobat?
Open the scanned PDF and go to All tools > Scan & OCR > Recognize text, then open the recognition settings and select the document language. Menu names can vary by version.
What should I provide if the text is still incorrect?
Provide the Acrobat version, OCR method, export format, and a short sample showing the expected text and JSON output. Include the character codes if you can inspect them.




