Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29755

Problem with text encoding for output from getChildren JSON-RPC API in Confluence

    XMLWordPrintable

Details

    Description

      Hello,
      yesterday I posted this issue on Atlassian Answers, but I feel it really might be a bug, so I'm reporting it also here.

      It's a problem with Confluence JSON-RPC API, "getChildren" method.
      In the API output, Confluence pages titles containing "special characters" are not encoded correctly. See example:

      [
          {
              "version": 1,
              "parentId": 28148060,
              "permissions": 0,
              "id": 28835879,
              "space": "TEST",
              "title": "Copy of Will s��",
              "url": "https://confluence:8443/pages/viewpage.action?pageId=28835879"
          },
          {
              "version": 1,
              "parentId": 28148060,
              "permissions": 0,
              "id": 29753574,
              "space": "TEST",
              "title": "Special chars-�??�?�?b��",
              "url": "https://confluence:8443/pages/viewpage.action?pageId=29753574"
          },
          {
              "version": 3,
              "parentId": 28148060,
              "permissions": 0,
              "id": 28835875,
              "space": "TEST",
              "title": "Will s��",
              "url": "https://confluence:8443/pages/viewpage.action?pageId=28835875"
          }
      ]
      

      No matter what HTTP header I setup, it doesn't correct the output.

      Attachments

        Issue Links

          Activity

            People

              lho@atlassian.com Le Ho (Inactive)
              3ddac084d69d Martin Stiborsky
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: