lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Can't show accented characters on non utf-8 files

Open brneor opened this issue 2 years ago • 0 comments

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: image

latin1: image

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

brneor avatar Mar 17 '23 20:03 brneor