Skip to content

Character encoding in file view

Overview

Our software ambient is windows and we have some xhtml files with ISO-8859-1 enconding. After pushing some of these files with accents like "ã", the gitlab file viewer do not show those characters.

Reproduce

  1. Create xhtml file with accent chars ã é
  2. View file in GitLab file viewer https://gitlab.com/Dtsr/xhtml_test/blob/master/conciliarCreditosRedecard.xhtml
  3. View raw file https://gitlab.com/Dtsr/xhtml_test/raw/master/conciliarCreditosRedecard.xhtml

Example files provided

Relevant Links

https://github.com/gitlabhq/gitlabhq/issues/5493

//cc @stanhu


ZD: https://gitlab.zendesk.com/agent/tickets/25962