#25 encoding support for XMLRPCServlet

closed-fixed
Geoff Talvola
WebKit (45)
1
2003-01-15
2002-05-22
Oleg Noga
No

XMLRPCServlet uses default encoding to generate xml-
rpc response

I'll make it to response XML with the same encoding as
a request encoding is

Discussion

  • Oleg Noga
    Oleg Noga
    2002-05-22

    • priority: 5 --> 1
     
  • Oleg Noga
    Oleg Noga
    2002-06-03

    • assigned_to: nobody --> gtalvola
     
  • Geoff Talvola
    Geoff Talvola
    2002-10-21

    Logged In: YES
    user_id=88162

    I can't download the patch.

    Oleg, could you resubmit the patch file and make sure it
    can be downloaded successfully?

    Also, could you explain the purpose of the patch?

     
  • Oleg Noga
    Oleg Noga
    2002-10-22

     
    Attachments
  • Oleg Noga
    Oleg Noga
    2002-10-22

    Logged In: YES
    user_id=551440

    NOTE:
    -----------------------------
    XMLRPCServlet_encoding_support_patch is no more relevant.
    Sorry, I can't remove it. Please, download
    XMLRPCServlet_patch_2 instead.

    Detailed description:
    -----------------------------
    XMLRPCServlet generates XML with default xmlrpclib
    encoding (UTF-8), even when request was with another
    encoding. So remote methods can accept any localized
    strings, but can't return strings that don't match UTF-8
    encoding.
    The purpose of patch is:
    1. To make XMLRPCServlet to generate response XML with
    localized encoding. XMLRPCServlet gets encoding from
    request and generates response with the same encoding. If
    request was with default encoding, response will have default
    encoding too.
    2. To fix response content type. Content type changed
    to "text/xml" (was "text/html"). Some http xml clients are
    sensitive to this header.

     
  • Geoff Talvola
    Geoff Talvola
    2003-01-15

    • status: open --> closed-fixed
     
  • Geoff Talvola
    Geoff Talvola
    2003-01-15

    Logged In: YES
    user_id=88162

    I've applied the patch and tested it. Seems fine. Sorry it
    took me so long...