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

This widget could not be displayed.

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

This widget could not be displayed.

Thank you Henrique, I should have shared the issue.

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...

860 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