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


Issue #7239 new

Allow specifying a repository's encoding (for viewing files/diffs) (BB-8418)

José Rocha
created an issue

When we commit files with Git, Bitbucket tries to gess the encoding. Sometimes these guesses are not correct and it would be great if we can set the encoding within our account or repository.

Comments (13)

  1. Sérgio Siegrist

    I agree with Mauro Molinari. All IDEs I've worked with have an option to set the character encoding of files in a project, which can be chosen conveniently. Likewise, HTTP supports many character encodings, and all decent web browsers support them as well. There's no reason why a source code repository should stick to UTF-8 (or ASCII) only. Please!

  2. John Brewster

    See also #9686.

    As stated there, being able to change the encoding used by Bitbucket's diff viewer (either repository-wide, or on a file-by-file basis) is high priority if Bitbucket are serious about supporting pull request functionality.

  3. Inna Kabanova

    I have the same trouble with displaying the Russian text when trying to see the diff within the pull request. When opening the same raw code on the neighbouring Chrome tab in utf-8, everything's ok. Voting up this issue.

  4. Log in to comment