-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Encoding issues #40
Comments
@bizoo Thanks for the report -- I'll take a look into it. |
@bizoo does the built-in git diff in vscode work for you? I'm seeing the same behavior with the vscode git diff as with GitLens. |
@bizoo I don't think there is currently a way I could fix this. Git itself doesn't know about the file encoding -- and vscode doesn't provide a way (as far as I can tell) to know what encoding the file is opened as. If you or anyone else has any ideas I'm all ears :) |
You're correct, vscode doesn't handle it very well:
I suppose that it works in vscode because it open the files from git using a different API that respect the file encoding from settings. So even vscode itself doesn't fully support encoding in git, I'll open an issue for it. By the way, thanks for this great plugin. |
An issues is already filled: And it's incorporated in the March Iteration Plan 👍 |
And you're correct about getting encoding of a file: |
Oups, closed by error... |
@bizoo Thanks for the updates! I will look into adding support for the |
Following this comment: I tried the new git SCM integration and now the encoding works like before (the encoding of the files.encoding settings is always used), but it doesn't change anything for Git Lens. |
@bizoo I will take a look at what was added and see if I can get that in to GitLens |
@bizoo Sorry for the long delay, but can you try the new beta here: v3.5.0-beta.2? You can find installation instructions here: Installing Beta Releases |
Sorry for the late answer, was on vacation. Thanks for your hard works. |
My file encoding is big5 This behavior after version 9. |
…s-tweak Tweak show merge commits gitkraken#40
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
There is some issues when encoding of files in Git is not UTF-8.
If I have a file opened in vscode encoded in Windows 1252 (this is my default encoding for my workspace),
when using the Compare with ... command, the files from Git (not the current one in the Working folder) is displayed with the wrong encoding.
To replicate:
The current file is OK but the one in Git is wrong (garbage instead of é).
I think the encoding from the current file in vscode must be used to decode the files from Git.
The text was updated successfully, but these errors were encountered: