How to set the text encoding?

I'm new to BitBucket. I just created a repository and pushed some code. This code is encoded with ISO-8559-1 charset. However, when I browse it on BitBucket interface I see corrupted accented letters. I guess BitBucket assumes text files are in UTF-8 character encoding, but it's not my case.

How can I fix fhis? Is there an setting to tell BitBucket that text files in a repository are in a different encoding?

Is the "encoding" property of .gitattributes supported?

2 answers

1 accepted

3 votes
Accepted answer
Gary Sackett Atlassian Team May 14, 2015

Hi Mauro,

The Bitbucket website does default to UTF-8, and does not allow you to choose what encoding that the reader will try to view the repo with.  We have an open feature request to change this at  Please feel free to add any feedback, and/or vote for this feature.


Thank you Gary, I will monitor that ticket. This feature would be extremely useful, as UTF-8 is not the only encoding around sad

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,961 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you