jesseduffield / jesseduffield/lazygit
Can't show accented characters on non utf-8 files
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
When the content of the file shown on previews is not utf-8, accented characters are not shown.
**To Reproduce**
1. In a git repository create a text file.
2. Editing the file in vim, add a string with accent characters like "acentuação"
3. `:set fileencoding=latin1`
4. Save the file.
5. 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
Contributor guide
Assessment
This issue has not been assessed yet.