docling-project / docling-project/docling
Random special characters returned instead of dashes or apostrophe
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 84
Description
### Bug
When parsing PDF files, I get strange output text for some simple elements like dashes or apostrophes. I observed:
- '¥' instead of '-'
- 'Ð' instead of '-' in another file
- 'Õ' instead of '‘' (apostrophe)
- 'Ô' instead of '"'
### Steps to reproduce
Run docling conversion on the following PDF:
[docling_test_symbols.pdf](https://github.com/user-attachments/files/20925634/docling_test_symbols.pdf)
Input:
Output in markdown:
```
## How?
¥ test ÒcallingÓ
## test Ð test
## Similarities
- ¥ test1
- ¥ test2
This is a testÕ
at 32Ð36 wGA
24Ð36 wGA
```
### Docling version
Docling version: 2.37.0
Docling Core version: 2.38.0
Docling IBM Models version: 3.5.0
Docling Parse version: 4.0.5
Python: cpython-313 (3.13.1)
Platform: macOS-15.3.1-arm64-arm-64bit-Mach-O
### Python version
Python 3.13.1
### Note
Thanks @PeterStaar-IBM and the docling team for maintaining this lib, it's awesome !
Contributor guide
Assessment
This issue has not been assessed yet.