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

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 Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,228 views 4 2
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