lazygit
lazygit copied to clipboard
Can't show accented characters on non utf-8 files
Describe the bug When the content of the file shown on previews is not utf-8, accented characters are not shown.
To Reproduce
- In a git repository create a text file.
- Editing the file in vim, add a string with accent characters like "acentuação"
:set fileencoding=latin1- Save the file.
- Open lazygit
Expected behavior Accented characters should display corretcly.
Screenshots
utf-8:

latin1:

Version info:
- commit=16802a048e0425182f08cf0e9a2bc31480e9a55d, build date=2023-02-01T11:02:43Z, build source=binaryRelease, version=0.37.0, os=linux, arch=amd64, git version=2.39.2
- git version 2.39.2