Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows

Diff doesn't detect UTF-8 without BOM


    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 1.1.1
    • General
    • None
    • Windows 8.1 Preview Build 9431, standalone build
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The diff section of the application will show all text as ASCII when a file is encoded in UTF-8 without BOM. The way I confirmed that it was ASCII was by switching to ASCII mode inside Notepad++ and I got an identical set of garbled text. I attached images of one instance of this in the diff view, and in Notepad++. Furthermore, UTF-8 without BOM shows a miscellaneous character as the first character of the document. Adding a BOM caused the application to detect the file correctly, however using BOM with UTF-8 is not recommended by the Unicode standard (section 2.6).

        1. DiffView.png
          71 kB
          Jim Borden
        2. NotepadView.png
          81 kB
          Jim Borden

            sstreeting Steve Streeting (Inactive)
            878d994be1a8 Jim Borden
            0 Vote for this issue
            7 Start watching this issue