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: Suggestion
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Fix Version/s: 1.1.1
    • Component/s: General
    • Labels:
      None
    • Environment:
      Windows 8.1 Preview Build 9431, standalone build
    • Feedback Policy:

      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.

      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

              Assignee:
              sstreeting Steve Streeting (Inactive)
              Reporter:
              j.borden Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: