tibirna / qgit

Official git repository for QGit.
Other
174 stars 68 forks source link

Filenames sporting utf-8 characters are not displayed correctly #32

Open tibirna opened 6 years ago

tibirna commented 6 years ago

Submitted by Michael Gerdau on 2017-04-18.

Description: Filenames sporting utf-8 characters are not displayed correctly. E.g. a file named (without the '“') “Abendstille-überall.ly” is displayed as “Abendstille-\303\274berall.ly”. UTF-8 is the selected character set whereever it can be configured in qgit, i.e. Settings, “General” tab field “Text codec” as well as in “Git config” tab Parameter “i18n > commitencoding” are all set to UTF-8.

Additional info: package version(s): at least since 2.5; it definitely is in the current 2.7 Steps to reproduce: the default encoding of the filesystem is UTF-8 in a git repository viewed with qgit create a file with utf-8 characters in the name add this file to the git repo look at the filename in the Git tree pane of qgit → utf-8 characters are escaped like in the example above.

filiperinaldi commented 6 years ago

This is not an issue with QGit. Actually, this is not an issue at all, but a default behaviour of git.

To tell git to not quote paths with "unusual" characters, set core.quotepath:

git config --global core.quotepath off

After setting this option, you will see your über filenames in full glory. Example:

image

@tibirna, this issue can be closed.

tibirna commented 6 years ago

Well, then I think we should add an option to qgit's setup, to make this git flag more easy to access (easier than the very crowded Git Config tab in the settings). Thanks a lot, Filipe, for tracking this down and clarifying it.

tibirna commented 1 year ago

To the existing "Git config" display of underlying git's global and local configuration options (present in the usual git config places), add a git config edit widget, which allows for the most useful modifications (no need for an exhaustive git config editor):