my source tree show mess code when there are chinese

my source thee show mess code in commit message,when i write some chinese in commit message, it will show mess code rather than chinese. it work correctly before,i don't know why.

thinks for your help

3 answers

SourceTree supports UTF8 characters in commit messages, and this works fine for extended characters including Chinese.

If the view shows garbage, it's usually caused by the commits having been created somewhere else and encoded through some other non-UTF8 encoding scheme. UTF8 is the most widely supported.

first ,thanks for your help.but my colleague's source tree works fine.we use the common git souce code,which means our commit messages are all the same.Today, I suddenly found my source tree show commit messages correctly,it works fine again.i don't know why.

Thanks again for your help :)

I have a smillar problem. It works correctly befre. but only 1 repository shows gabage commit message. (the message include Korean)

As noted above, this happens when someone commits with badly encoded characters, and it can cause problems for a while after that commit because SourceTree retrieves the log in batches of 200 lines at a time, the encoding can screw up the text decoding for many lines. If you click on the commits afterward you should find the commit details below look OK.

We're tracking this one here and hope to mitigate this data problem better in 1.6 https://jira.atlassian.com/browse/SRCTREE-1285

First, there are some files with chinese characters and they had committed! Then in the Log panel, i saw mess code in some of them, others are ok!

Second, i try to delete characters shown as mess code, then in the File status panel, i saw the deleted characters is show correctly!

Third, i add BOM to the file, everything is ok!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

798 views 0 4
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