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

This widget could not be displayed.

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 :)

This widget could not be displayed.

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

This widget could not be displayed.

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
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

883 views 2 3
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