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

      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.

          Form Name

            [CONFSERVER-29755] Problem with text encoding for output from getChildren JSON-RPC API in Confluence

            Rudy Slaiby made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 75980 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897510 ] New: CONFSERVER Bug Workflow v4 [ 2991815 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789311 ] New: JAC Bug Workflow v3 [ 2897510 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2736080 ] New: JAC Bug Workflow v2 [ 2789311 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392916 ] New: JAC Bug Workflow [ 2736080 ]
            Alex Yakovlev (Inactive) made changes -
            Labels Original: affects-server bugfix loyalty remote-api-(soap&xml-rpc) rest-api slush New: affects-server loyalty remote-api-(soap&xml-rpc) rest-api slush
            Alex Yakovlev (Inactive) made changes -
            Labels Original: affects-server bugfix remote-api-(soap&xml-rpc) rest-api slush New: affects-server bugfix loyalty remote-api-(soap&xml-rpc) rest-api slush
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2276092 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392916 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234660 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2276092 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197331 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234660 ]

              lho@atlassian.com Le Ho (Inactive)
              3ddac084d69d Martin Stiborsky
              Affected customers:
              3 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: