Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-6377

Incorrect encoding in Git Commit message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Low
    • None
    • 1.9.6.1, 2.0.20.1
    • Git
    • Severity 3 - Minor

    Description

      We are using SourceTree to connect to a GIT repository on Visual Studio Team Services. With default encoding set (UTF-8), our commit messages looks right when Danish characters are included (æ, ø, å), but the diff window shows "?" symbols if the tracked files contains Danish characters:

      UTF-8:

       

       

      If we change ST to use text encoding Windows-1252, the characters look correct in the file diff window, but all commit messages now contain incorrect characters. This applies both to commits made before and after default encoding has been changed (and ST has been closed and re-opened in between):

      Windows-1252:

      As an extra bug, it seems that when set to Win-1252, it is only respected in the Diff window once the change have been staged. Unstaged changes still contains "?":

      Unstaged:

      Staged:

       

      This bug seems related to SRCTREEWIN-1048, but that feature request should not be necessary for encoding to respected in all ST windows.

      Attachments

        1. UTF8-Committed.jpg
          UTF8-Committed.jpg
          39 kB
        2. Win1250-BeforeStage.jpg
          Win1250-BeforeStage.jpg
          24 kB
        3. Win1250-Committed.jpg
          Win1250-Committed.jpg
          42 kB
        4. Win1250-Staged.jpg
          Win1250-Staged.jpg
          20 kB

        Activity

          People

            Unassigned Unassigned
            khn554969625 Kevin Hejn
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: