Text garbled in source code comment from PullRequest
Asked by Jun Takaba:

Dear Atlassian-team

I'm Japanese and am currently using Japanese character(Shift-JIS) set.  
I would like to inquire the regarding the source code comment from PullRequest.  
The comment were unreadable. The correct character should be UTF-8, however the  
one I got is SJIS code.

I tried fixing it by switching the google chrome extension character set to Shift-JIS  
but it didn't work out.

Do you have any ideas/ways on how to solve this issue.

Sincerely yours,  
Jun Takaba


Answers:
author: Theodora Boudale
body: Hi [@Jun Takaba](/t5/user/viewprofilepage/user-id/4367963),

Thank you for reporting this.

Are you able to reproduce this issue? I can open a bug report for our development team to investigate and it would be helpful to see an instance of this issue occurring for the purposes of the investigation.

I have created a public repo in one of my workspaces and also a PR in it:

<https://bitbucket.org/teamfortesting/test-repo/pull-requests/1>

Would it be possible for you to leave a comment in that PR using the same characters that do not get encoded correctly, so we can look into itthis? I can then create a bug report and also link to this example so we can investigate further.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora

comments: author: Jun Takaba
body: Dear [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Thank you for your reply.  
And I couldn't reproduce this issue on follwong URL, because this issue happen in text.  
<https://bitbucket.org/teamfortesting/test-repo/pull-requests/1>

Attahced picture (sample_pullrequest.png) is a sampel PllRequest for understanding this issue.  
- Shift-JIS_text.txt  
- line 3: Yellow line is a text by using Shift-JIS (text garbled happen)  

- UTF-8_text.txt  
- line 2: This text is created by UTF-8 and we can read it.

Do you have any ideas/ways on how to solve this issue.

Best Regards,  
Jun Takab![sample_pullrequest.png](https://community.atlassian.com/t5/image/serverpage/image-id/153972i33F70779078C6715/image-size/large?v=v2&px=999 "sample_pullrequest.png")


author: Caroline R
body: Hi, [@Jun Takaba](/t5/user/viewprofilepage/user-id/4367963),

I'm afraid this is a known issue on Bitbucket Cloud. Currently, Bitbucket Cloud supports only the UTF-8 format. As a result, it will treat files with other encoding formats as a UTF-8 format, that's why you're seeing the garbled or byte text in your encoded file.

We have the below feature request to allow specifying a repository's encoding:

* <https://jira.atlassian.com/browse/BCLOUD-7239>

I have linked your question internally to the feature request. Our development team will update the above request when there is any progress made. Hence I would suggest keeping a watch and vote for it. Do note that all feature requests are implemented with this policy in mind:

* <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Kind regards,  
Caroline


author: Jun Takaba
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

Thank you for your information.  
I could understand this issue's status.  
I will watch following ticket.  
<https://jira.atlassian.com/browse/BCLOUD-7239>

Best Regards,  
Jun Takaba


Tags: bitbucket-cloud

cloud