Confluence REST API incorrectly encode non-breaking spaces ( )

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 0

      Summary

      Non-breaking spaces:

       
      

      are not encoded properly in Confluence REST API and is displayed as the character  instead

      Environment

      Seen on the following browser:

      • Firefox
      • Chrome
      • Edge

      Steps to Reproduce

      1. Create a new page
      2. Insert the following text:
        Test one
        
        Test Two 
        

      3. Get the page using REST API GET commands, example:
        <baseURL>/rest/api/content?type=page&expand=body.view&title=<Page Title>&spaceKey=<Space Key>
        

        Expected Results

        The

        &nbsp;

        are displayed as spaces

      Actual Results

        are displayed as the character  instead

      Notes

      1. Can be easily observed from our own documentation site, link. From the REST API GET link, the  character is shown instead of space( ) in the string <p>The following SVG images (Scalable Vector Graphics)". See Page Storage Format link of the page which shows
        &nbsp;

        in place of the  character

            Assignee:
            Unassigned
            Reporter:
            Monique Khairuliana (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: