"pipreqs --encoding=utf8 --force ." return error
Open
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when I do this command : ``pipreqs --encoding=utf8 --force .`` I have this error : `` 'utf-8' codec can't decode byte 0xf6 in position 122: invalid start byte``.
I tried without the encoding, and I have the charmap error. i tried with utf16, other error. Do you know why ?
Contributor guide
Research direction
Reproduce `pipreqs --encoding=utf8 --force .` in a project containing the reported non-UTF-8 input, then trace the encoding handling used while scanning files. Check existing tests and documentation for encoding behavior; the expected fix should make the command handle this input consistently or report a clear, actionable error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100