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

Issue #11932 closed
coconut
created an issue

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.

Comments (8)

  1. coconut reporter

    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.

  2. Marcus Bertrand staff
    • edited description
    • changed status to closed

    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

  3. Log in to comment