question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

non-UTF8 characters are not rendered correctly in Changes and History diff

See original GitHub issue

Description

When a source file contains some character that does not appear in the current locale, but the related language package is installed, those code are rendered correctly if you read the diff in Changes tab, but they are not rendered correctly if you read the diff in History tab.

The point is that, if everything is handled correctly in Changes diff, why not do it correctly again in History diff?

Version

GitHub Desktop version: 1.0.13

OS version: Microsoft Windows [Version 10.0.16299.192]

Steps to Reproduce

  1. Set your computer’s locale to english
  2. Install Chinese language package
  3. Type some Chinese character to your code
  4. You can see diff shows Chinese characters when you are reading diff from Changes tab
  5. Commit it
  6. Open History tab and read the diff, those Chinese characters are rendered as unrecognizable symbols

Expected behavior: Character correctly rendered (see repro steps for details)

Actual behavior: Character incorrectly rendered (see repro steps for details)

Reproduces how often: 100%

Logs

This is not a crash so I don’t think log helps.

Additional Information

You can use Github Desktop to read this change: https://github.com/vczh-libraries/GacUI/commit/92945be6a7fe72c037409cb60372e8ca5be3975f , remember to install Chinese language pack while keeping your computer in English. Undo this commit and see things just work in Changes tab, but not in History tab.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

5reactions
zerox1212commented, Oct 3, 2018

I have the same issue in the Changes tab when working with ANSI (Windows 1252) encoded text files. Special ANSI characters render as “?” blocks.

3reactions
jredfoxcommented, Jul 17, 2021

add ability in the desktop gui to play with the .gitconfig and .gitignore these backend files almost no one knows how to use do to no good documentation and it not being in the desktop gui. the ignore kind of is. I literally look it up on google and it tells you to use a linux command which doesn’t exist on windows and then it doesn’t work for .gitignore nor do I know how to use it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble with UTF-8 characters; what I see is not what I stored
The bytes to be stored are not encoded as utf8. Fix this. · The connection (or SET NAMES ) for the INSERT and...
Read more >
Gitlab has problems handling ansi files e.g. windows-1252 ...
non -ascii chars of windows-1252 are not rendered or dropped, resulting in bad behaviours during editing the files AND bad "Request - approve ......
Read more >
UTF-8: The Secret of Character Encoding - HTML Purifier
This ridiculously simplified version of the history of character encodings shows us that there are now many character encodings floating around.
Read more >
How can I fix the UTF-8 error when bulk uploading users?
This error is created when the uploaded file is not in a UTF-8 format. UTF-8 is the dominant character encoding format on the...
Read more >
UTF-8, Extended ASCII, Character Set Encoding, Collisions
This has no effect on the internal data, but it affects the way you see the output. If you set this to ISO-8859-1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found