Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BOM characters being added to text in JIRA comments when part of a JSON structure.

Graham Hart
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2018

If, in a JIRA, someone adds a comment and includes a piece of JSON for me to use to investigate a problem. I have recently started to see BOM characters being added to the middle of the JSON data. 

 

To reproduce: 

Create a JIRA and add a comment which includes the following JSON. 

{"Dummy":"value",DummyList":[[{"Entry1":"*"}],[{"Entry2":"*"}],[{"Entry3":"*"}],[{"Entry4":"*"}]],"Dummy2":"Value2"}

 

You could either type this one or paste it in. 

 

If you typed it and save it and it formats across multiple lines, then deformat it so it has no newlines. 

 

Once you have saved the comment, copy the text and paste it into Notepad++ 

 

Change the Encoding format to ANSI and you will see there are BOM markers after each [{blah}], section. 

 

To remove them I have to paste them into Notepad++, change the encoding so I can see them, and then delete them.

 

This appear to be a bug in JIRA. I don't know if this is the best way to raise a bug. 

 

Cheers

 

Graham

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer