UnicodeEncodeError
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start in markitdown/main.py at _handle_output, where the traceback shows result.text_content is printed. Reproduce the command on Windows with the supplied PDF and inspect how CLI output encoding is handled. Done means the command can emit the converted Markdown containing the bullet character without raising UnicodeEncodeError.
Written by the indexing model from the issue text.
Description
I encountered a problem:
PS D:\Program Files\markitdown> markitdown '.\FreeRADIUS Technical Guide.pdf' > doc2.md
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Python314\Scripts\markitdown.exe_main.py", line 5, in
sys.exit(main())
~~~~^^
File "C:\Python314\Lib\site-packages\markitdown_main.py", line 93, in main
handle_output(args, result)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "C:\Python314\Lib\site-packages\markitdown_main.py", line 102, in _handle_output
print(result.text_content)
~~~~~^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' in position 140: illegal multibyte sequence
- Dominant language
- Python
- Stars
- 186k
- Forks
- 13.7k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 49
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/markitdown
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/markitdown#2530 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/markitdown#2502 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
microsoft/markitdown#2481 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/markitdown#2470 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/markitdown#2438 ·
All issues in microsoft/markitdown
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100