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
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 https://bitbucket.org/site/master/issue/7239/allow-specifying-a-repositorys-encoding.  Please feel free to add any feedback, and/or vote for this feature.

Cheers,
Gary 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,452 views 26 12
Join discussion

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