Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-11932

Bitbucket doesn't show source file contents in text but view raw

      My source code extension is .mq4 which is written by mt4 script language. When creating repository, the language I leave it blank, because there is no file type supporting it.

      After pushing files to the repository, this type of files are not able to be viewed. But I see "View Raw" instead. clicking the view raw link it downloads the file instead of showing it in editor.

      I've tried to recreate a clean repository but no luck.

      the source code is pure text file that can be opened by any text editors. I attached a sample file for your info.

            [BCLOUD-11932] Bitbucket doesn't show source file contents in text but view raw

            Attachment multi-symbols.mq4 has been added with description: Originally attached to Bitbucket issue #11932 in site/master

            Legacy Bitbucket Cloud User (Inactive) added a comment - Attachment multi-symbols.mq4 has been added with description: Originally attached to Bitbucket issue #11932 in site/master

            As there has been no activity on this issue in some time, we're closing it. If you're still having issues with this, please raise a new public issue here, or privately to support.atlassian.com.

            Cheers,
            Marcus

            aMarcus (Inactive) added a comment - As there has been no activity on this issue in some time, we're closing it. If you're still having issues with this, please raise a new public issue here, or privately to support.atlassian.com. Cheers, Marcus

            Hermann added a comment -

            Changed UTF-16 with BOM to UTF-8 and bitbucket now is able to show the source

            Hermann added a comment - Changed UTF-16 with BOM to UTF-8 and bitbucket now is able to show the source

            velikanov added a comment -

            +1 here, .mq5 doesn't show too

            velikanov added a comment - +1 here, .mq5 doesn't show too

            evzijst added a comment -

            If it's not UTF-8, what encoding are you saving these files in?

            evzijst added a comment - If it's not UTF-8, what encoding are you saving these files in?

            I found the problem. it's because of the

            It's the file encoding saved in UNICODE type. when I re-save it in UTF-8, it can be opened in Bitbucket. However, all the Chinese characters becomes bad unreadable chars. I still need it to be in unicode encoded file so that all my source code in good shape.

            Legacy Bitbucket Cloud User (Inactive) added a comment - I found the problem. it's because of the It's the file encoding saved in UNICODE type. when I re-save it in UTF-8, it can be opened in Bitbucket. However, all the Chinese characters becomes bad unreadable chars. I still need it to be in unicode encoded file so that all my source code in good shape.

              6995b9ed1710 evzijst
              legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: