Japanese characters in comment turns into '?' when squashing interactively

SourceTree for Windows 1.5.2

default charset = utf8

In the interactive rebase schedule dialog, when I squashed commits with Japanese message, squashed message becomes like "????????????".

Even I rewrite the message, the generated commit still holds a message like "??????????".

Non-ASCII characters seems not dealed with appropriately.

2 answers

Hi Miura,

I've checked that you've already opened a bug report into jira.atlassian.com, I want to share here the answer from SourceTree developer that can be useful for other users that are facing the same issue:

If the input was via SourceTree then it should definitely be in UTF-8. If you did it via the terminal then you have the option to tell Git (via a config setting) what encoding you're using. If this isn't specified then it defaults to UTF-8. Are you committing from the terminal?

Also, would it be possible to provide us with some output so we could see what encoding the commit content is in? Either you could provide the repository, or alternatively you can call "git cat-file commit <hash>" using the hash of the commit that's showing the question marks, then paste the output in here.

More details can be found on this report:

Kind Regards,

Thank you Henrique, I should have shared the issue.

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,115 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