René's URL Explorer Experiment


Title: I have a decode issue with GitPython · gitpython-developers/GitPython · Discussion #1374 · GitHub

Open Graph Title: I have a decode issue with GitPython · gitpython-developers/GitPython · Discussion #1374

X Title: I have a decode issue with GitPython · gitpython-developers/GitPython · Discussion #1374

Description: I have a decode issue with GitPython

Open Graph Description: My code is , And there is no chinese in my repo path。 And an exception was found. Exception in thread Thread-22: Traceback (most recent call last): File "C:\zhoujinyuWorkSpace\MyUe4\pyscript\venv\l...

X Description: My code is , And there is no chinese in my repo path。 And an exception was found. Exception in thread Thread-22: Traceback (most recent call last): File "C:\zhoujinyuWorkSpace\MyUe4\pyscript\v...

Opengraph URL: https://github.com/gitpython-developers/GitPython/discussions/1374

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"I have a decode issue with GitPython","text":"

My code is ,

\n

\"image\"

\n

And there is no chinese in my repo path。

\n

And an exception was found.

\n
Exception in thread Thread-22:\nTraceback (most recent call last):\n  File \"C:\\zhoujinyuWorkSpace\\MyUe4\\pyscript\\venv\\lib\\site-packages\\git\\cmd.py\", line 106, in pump_stream\n    for line in stream:\nUnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 1297: illegal multibyte sequence\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"c:\\python38\\lib\\threading.py\", line 932, in _bootstrap_inner\n    self.run()\n  File \"c:\\python38\\lib\\threading.py\", line 870, in run\n    self._target(*self._args, **self._kwargs)\n  File \"C:\\zhoujinyuWorkSpace\\MyUe4\\pyscript\\venv\\lib\\site-packages\\git\\cmd.py\", line 119, in pump_stream\n    raise CommandError([f'<{name}-pump>'] + remove_password_if_present(cmdline), ex) from ex\ngit.exc.CommandError: Cmd('<stderr-pump>') failed due to: UnicodeDecodeError(''gbk' codec can't decode byte 0xa8 in position 1297: illegal multibyte sequence')\n  cmdline: <stderr-pump> git pull -v origin\nUpdate C:/workspace/AClient_Bin/AClient/Content/ repo\n
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

Strangely enough it looks like I have seen this before.

\n

The problem seems to be that the python interpreter default code is gbk, but should be utf-8 for most purposes. It can be changed on startup I think.

\n

It looks like this is how you change the default encoding.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:f0ed10dd-7166-3f7a-bec1-df7f3d355598
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idA80A:31CE75:1151E63:1700944:6969A8CC
html-safe-nonce8a278feeeebb7165b29968e33b137d4f66bf09c1fcd9a4cfe15a06fbdcd866ed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODBBOjMxQ0U3NToxMTUxRTYzOjE3MDA5NDQ6Njk2OUE4Q0MiLCJ2aXNpdG9yX2lkIjoiNjE5Nzg2ODY5NDQ1MzQ2MzI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacefefb1b99d5cbd3fb5671bb72413f290c7dbb2284cd4650a4b9c7e9048caa6fa
hovercard-subject-tagdiscussion:3668359
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/gitpython-developers/GitPython/1374/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/ad9ce0f5435921d88d0f483c51f34ce51060500cf0640fd4ccbf06f627fcecc3/gitpython-developers/GitPython/discussions/1374
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad9ce0f5435921d88d0f483c51f34ce51060500cf0640fd4ccbf06f627fcecc3/gitpython-developers/GitPython/discussions/1374
og:image:altMy code is , And there is no chinese in my repo path。 And an exception was found. Exception in thread Thread-22: Traceback (most recent call last): File "C:\zhoujinyuWorkSpace\MyUe4\pyscript\venv\l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/discussions/1374#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1374
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1374
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1374
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1374
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1374
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Answered https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103
Byronhttps://github.com/Byron
99848873 https://github.com/99848873
Q&Ahttps://github.com/gitpython-developers/GitPython/discussions/categories/q-a
I have a decode issue with GitPython https://github.com/gitpython-developers/GitPython/discussions/1374#top
99848873 https://github.com/99848873
Answered https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103
Byronhttps://github.com/Byron
Return to tophttps://github.com/gitpython-developers/GitPython/discussions/1374#top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
99848873 https://github.com/99848873
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussion-3668359
https://user-images.githubusercontent.com/11538922/140450755-a1a8f8d8-f757-4f1f-a9ba-f4f2a6c7ed36.png
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
Byron https://github.com/Byron
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103
this is how you change the default encodinghttps://stackoverflow.com/questions/2276200/changing-default-encoding-of-python/7892892#7892892
View full answer https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103
Oldest https://github.com/gitpython-developers/GitPython/discussions/1374?sort=old
Newest https://github.com/gitpython-developers/GitPython/discussions/1374?sort=new
Top https://github.com/gitpython-developers/GitPython/discussions/1374?sort=top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
Byron https://github.com/Byron
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593103
this is how you change the default encodinghttps://stackoverflow.com/questions/2276200/changing-default-encoding-of-python/7892892#7892892
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
Byronhttps://github.com/Byron
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593162
https://user-images.githubusercontent.com/63622/140471800-7cdade7c-117e-49d9-9ae2-b5542bf6113c.png
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/99848873
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
99848873https://github.com/99848873
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593163
https://user-images.githubusercontent.com/11538922/140471741-43493d5e-ee9a-4a29-90ee-596e089c45a2.png
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/99848873
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
99848873https://github.com/99848873
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593171
https://user-images.githubusercontent.com/11538922/140471960-5ba9f755-61b8-4d6d-b415-398d1c7c2cf3.png
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/99848873
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
99848873https://github.com/99848873
Nov 5, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1593294
https://user-images.githubusercontent.com/11538922/140475179-b974f93b-b37b-4030-9e2f-e47543d65392.png
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
Byronhttps://github.com/Byron
Nov 6, 2021 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-1597923
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
Byronhttps://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/gitpython-developers/GitPython/discussions/1374
EliahKagan https://github.com/EliahKagan
Dec 22, 2023 https://github.com/gitpython-developers/GitPython/discussions/1374#discussioncomment-7928044
code page 936https://en.wikipedia.org/wiki/Code_page_936_(Microsoft_Windows)
code page 1252https://en.wikipedia.org/wiki/Windows-1252
running the interpreter with -X utf8 or setting the PYTHONUTF8 environment variable to the value 1https://peps.python.org/pep-0540/
#1747https://github.com/gitpython-developers/GitPython/issues/1747
#1362https://github.com/gitpython-developers/GitPython/issues/1362
This posthttps://serverfault.com/a/836221/99345
made to use UTF-8https://stackoverflow.com/a/57134096
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1374
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1374
🙏 Q&A https://github.com/gitpython-developers/GitPython/discussions/categories/q-a
https://github.com/99848873
https://github.com/Byron
https://github.com/EliahKagan
#1373https://github.com/gitpython-developers/GitPython/issues/1373
https://github.com/gitpython-developers/GitPython/discussions/1374
https://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.