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

XML-RPC does not handle Japanese characters in page title and content

    XMLWordPrintable

Details

    Description

      If you try to update a page with Japanese text in the title or description, the characters get corrupted.

      See example below of a Ruby script. Python script did not work either.

      The Japanese characters are UTF-8 encoded.

      require 'xmlrpc/client'
      
      server = XMLRPC::Client.new("ZZZ.canon.co.jp","/rpc/xmlrpc","8080")
      
      token = server.call("confluence1.login","XXX","YYY")
      
      newpage = {"title"=> "NewPage",
         "content" => "h1. new content\n日本語\nh2. new content2\n",
         "space"=>"test"}
      server.call("confluence1.storePage", token, newpage);
      
      server.call("confluence1.logout", token)
      

      Attachments

        Issue Links

          Activity

            People

              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              jhanji@imahima.com Neeraj Jhanji
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: