1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #5106 duplicate

BB thrown off by UTF16LE byte order mark? (BB-6396)

guillermooo
created an issue
  1. Create a .ps1 (PowerShell) file like so in PS: "get-date" > "date.ps1"
  2. PS creates a new file with .NET's default encoding
  3. Push file to BB.

Now BB thinks our date.ps1 file is a binary file. It should detect the encoding and show it as a regular PowerShell file (maybe with a hint at the fact that the encoding isn't ASCII/UTF8).

  1. On Win, re-encode the date.ps1 file to use UTF8.
  2. Push again.

Now BB will correctly detect date.ps1 as a PowerShell file.