Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'charmap' codec can't encode characters in position #65

Open
gokulcoder7 opened this issue Dec 28, 2024 · 7 comments
Open

Error: 'charmap' codec can't encode characters in position #65

gokulcoder7 opened this issue Dec 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@gokulcoder7
Copy link

(gitin) F:\python virtual environments\gitingest for llm>gitingest https://github.com/cyclotruc/gitingest
Error: 'charmap' codec can't encode characters in position 22-24: character maps to
Aborted!

(gitin) F:\python virtual environments\gitingest for llm>
(gitin) F:\python virtual environments\gitingest for llm>

@cyclotruc cyclotruc added the bug Something isn't working label Dec 28, 2024
@cyclotruc
Copy link
Owner

Thank you for reporting this issue! To help us better understand and fix the problem, could you please provide:

  1. Your operating system version
  2. The output of python --version

Also, it seems like there might be some non-ASCII characters causing issues with the 'charmap' codec. If possible, could you check if you're using Windows and what your system's default encoding is? You can check this by running:

import sys
print(sys.getdefaultencoding())

@tobiasla78
Copy link

i have the same issue (windows 11):

C:\...>gitingest .
Error: 'charmap' codec can't encode characters in position 22-24: character maps to <undefined>
Aborted!

C:\...>python
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.getdefaultencoding())
utf-8
>>>

@phamhung075
Copy link

phamhung075 commented Dec 29, 2024

#72
'utf 8' correction
i have fixed here

@gokulcoder7
Copy link
Author

Thank you for reporting this issue! To help us better understand and fix the problem, could you please provide:

  1. Your operating system version
  2. The output of python --version

Also, it seems like there might be some non-ASCII characters causing issues with the 'charmap' codec. If possible, could you check if you're using Windows and what your system's default encoding is? You can check this by running:

import sys
print(sys.getdefaultencoding())

Windows 11 Home,

(gitin) F:\python virtual environments\gitingest for llm>python -V
Python 3.12.5

import sys
print(sys.getdefaultencoding())
utf-8

@filipchristiansen
Copy link
Collaborator

@cyclotruc There is currently no support for Windows, right? Are there plans to add support, or should this issue be closed?

@cyclotruc
Copy link
Owner

Right Windows is not currently supported but this is planned.

I'm not sure I fully understood the issue but I'm willing to fix this encoding bug

@phamhung075
Copy link

I’ve created a lite version for Windows 11 while waiting for the next update:

GitIngest Lite

If you plan to use it for private enterprise projects, it also supports Windows 11.
fix all bugs on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants