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

Diff doesn't detect UTF-8 without BOM

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1.1
    • Component/s: General
    • Labels:
      None
    • Environment:

      Windows 8.1 Preview Build 9431, standalone build

    • Last commented by user?:
      true

      Description

      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).

        Attachments

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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  2 years, 46 weeks, 6 days ago