0 Replies Latest reply: Nov 10, 2013 4:27 AM by user9115824 RSS

    How to set encoding in Apex Listener

    user9115824

      I have a problem conversion characters when using Apex listener

      The problem occurs in two different configurations:

      1. APEX Listener 2.0 running on GlassFish Server Open Source Edition 4.0 Oracle Database 11g Release 11.2.0.3.0 (NLS_LANGUAGE: AMERICAN, NLS_CHARACTERSET: AL32UTF8)

      2 . APEX Listener 2.0 running in standalone mode Oracle Database 10g Express Edition Release 10.2.0.1.0 (NLS_LANGUAGE: AMERICAN, NLS_CHARACTERSET: AL32UTF8)

       

      to demonstrate the problem I created a restful service, which is in the GET method returns the result of the query :

      select: p_param as "result" from dual
      

       

      parameter : p_param transmitted via http header

      parameter : p_param set to 'sample data дф ' , the last two characters - Cyrillic


      Http Request is as follows:

      GET http://xxx.xx.xxx.xxx:8080/apex/encode HTTP/1.1

      Accept-Encoding: gzip, deflate

      param: sample data дф

      Host: xxx.xx.xxx.xxx: 8080

      Connection: Keep-Alive

      User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


      in both cases, the return value - <result> sample data 4D </ result>

      I could not find documentation on how to avoid re-encoding?


      regards.