How to set encoding in Apex Listener

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.

With a WE8MSWIN1252 (or comparable charset) database, fronted by APEX listener, and the absense of NVARCHAR2 support in APEX, is there an option to build an APEX application supporting UTF-8 characters anyway, without converting the whole database to UTF-8?
As "Application Builder User’s Guide" is quite tight-lipped when it comes to UTF-8 support, can somebody recommend an APEX FAQ concerning UTF-8 support in APEX?
Thanks and regards, Tom

Similar Messages

  • SDIXML_DOM_TO_XML - How to set Encoding - ANSI

    Hi,
    I am using SDIXML_DOM_TO_XML to generate XML File.
    I am using the method 'set_encoding' of IF_IXML_DOCUMENT
    to set the encoding format for the document.
    How to set the encoding format as ANSI for the document?
    Thanks & Regards,
    Abhishek

    also,
    I am trying to write the XML file to file in app.server.

  • How to set Encoding in ABAP Mapping

    Hi All,
    I have implemented ABAP Mapping in XI for converting Idoc into Idoc Flatfile which is provided by SAP and is in the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    However after this mapping is taking place all chinese characters are being replaced by #.
    So i want to explicitly set encoding in this ABAP Mapping. Can anybody please tell me where to set Encoding and how in this ABAP Code?
    Regards,
    Dinakar

    Any help please. Urgent.
    Regards,
    Dinakar

  • How to set encoding for xml Marshaller?

    Hi,
    I am using SAPXMLToolkit. And I use XMLMarshaller to convert from xml to java classes (jaxb classes). Now when I get some characters like ü, the marshaller gives an error
    com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 69(:main:, row:1, col:323)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:207)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:205)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:152)
         at com.sap.engine.lib.xml.parser.XMLParser.scanCharData(XMLParser.java:1896)
         at com.sap.engine.lib.xml.parser.tokenizer.XMLTokenReaderImpl.next(XMLTokenReaderImpl.java:190)
    How do I solve this?? How do I set encoding for the marshaller?
    Regards,
    Guru

    Hi ogre,
    To set the encoding scheme for an XML document, you can use the createProcessingInstruction. Our CVIXML instrument driver (which
    is basically and user-friendly wrapper made around the MSXML interface) uses
    this method to specify the version of the XML document. So, what you could do
    is simply modify our existing CVIXML instrument driver to include the encoding.
    It's actually quite simple to do this.
    First off, open up the cvixml.c file
    located in the <CVI>\toolslib\toolbox directory in CVI. Then change the
    value of the constant XML_PROC_INSTR_DATA
    (located on line 42) from "version=\"1.0\"" to "version=\"1.0\"
    encoding=\"UTF-8\"". The save your source file and
    select Options >> Create Object file. This object file
    (cvixml.obj) is attached to your cvixml.fp function panel. 
    To test this out, you could simply use some code like
    CVIXMLNewDocument ("RootElement", &xmlDoc);
    CVIXMLSaveDocument (xmlDoc, 0, "C:\\Test.xml");
    Then the Test.xml document should say
    <?xml version="1.0" encoding="UTF-8"?>
    <RootElement/>
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • How to set encoding  with xmldom ?

    Hello !
    I have to build an xml file from a query.
    I need to have : <?xml version="1.0" encoding="ISO8859-1"?> on the first line.
    I know how to set the version --> xmldom.setVersion(doc,'1.0'); ... but I don't know how to set the encoding.
    Is there a way to set it ?
    Thanks

    No. It is not possible. Here is an extract of a document I found on metalink :
    (XML Parser for PL/SQL FAQs)
    Q: Is it possible to dynamically set the encoding in the XML document?
    A: No, you must include the proper encoding declaration in your document, as
    per the specification. You cannot use setCharset(DOMDocument) to set the
    encoding for the input of your document. SetCharset(DOMDocument) is used
    with oracle.xml.parser.v2.XMLDocument to set the correct encoding for
    printing of the document.

  • How-to install FOP in Apex Listener 2.0 with glassfish

    Hi,
    I need to develop a PDF report in APEX 4.2.1. I want to use FOP. My setup is Apex Listener 2.0, Glassfish 3.1.2. According to the documentation, I should be able to use FOP with that setup. But there's no documentation that explain how to install/configure FOP with Apex Listener 2.0
    Thanks
    Etienne

    Please check below link.... i hope its work....
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2369725&tstart=45
    http://matthiashoys.wordpress.com/2012/05/04/configuration-and-deployment-of-pdf-printing-in-apex-4-1-1-using-glassfish-3-1-2-and-apache-fop/
    Best Regards,
    Shishir Tekade.
    My Blog: http://shishirtekade.blogspot.com

  • How to install and configure APEX listener on a 2 node cluster WLS

    So I've installed the apex listener on a 2 node cluster WLS and can get the Apex login screen to pop only when node 1 is up and node 2 is down.
    I'm going through a F5 - round robin and the login page does not pop when on node 2.
    I've followed the Oracle Apex Listener install doc: Oracle® Application Express Listener Installation and Configuration Guide
    Release 2.0 Part Number E25066-08
    Also followed the following blog exactly and compared it the install doc: http://www.snapdba.com/2013/05/configuring-the-apex-listener-2-0-1-on-weblogic-12c/
    Not much literature on what to do for a cluster multi node WLS configuration.
    What do I need to deploy onto node 2? I assume the images but what else?
    WLS: 10.3.6.0 - 2 linux servers (Linux 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux)
    APEX: 4.2.2
    APEX Listener: 2.0.3.221.10.13
    DATABASE: 11.2.0.3 RAC (only one database)

    Ok so I went and copied the image directory to both WLS servers in the correct directory that was dictated when creating the image war (i.war). Seems to work.
    Thx,
    Russ

  • How to set encoding windows-1251 in Apex Listener?

    How to display in browser xml in windows-1251. Trying
    begin
         owa_util.mime_header ('text/xml', TRUE, 'windows-1251');
         htp.p ('<?xml version="1.0" encoding="windows-1251"?>');
         htp.p ('<test>Тест</ test>');
    end;
    In the header Content-type: text/xml; charset=utf-8
    and the body in the utf-8 encoding

    Hi all
    Iam using apex 4.0 -oracle 11g with OHS on linux os
    I need to change my apex url http://x.x.x.x:xxxx/apex to http://x.com
    What are the settings i need to do.
    If any one knows please share the solution with me
    Thanks & In advance

  • How to set encoding of the file when using UTL_FILE

    Hi,
    We are using HRMS 11i applications. 11.5.10.2 version. Two languages are installed in our instance. American English and Canadian French.
    We have requirement to send employee details in a text file to third party vendor. We are using UTL_FILE to write details to the text file from PL/SQL procedure.
    The generated output file has encoding as "UTF8". Where as vendor is not able to process this file. They required encoding as "ANSI".
    How can we change the encoding to "ANSI" ?
    Values of character set parametrs are as follows.
    NLS_CHARACTERSET UTF8
    NLS_NCHAR_CHARACTERSET UTF8
    Any inputs are highly appreciated.
    Regards,
    Veerababu.

    You should take a look at the UTL_FILE documentation. As far as I know standard UTL_FILE calls write to the file system in the database character set. There are mirrored calls, but those write to the file system in UTF8.
    You may want to look at the UTL_RAW.CONVERT function. You may be able to use that in conjunction with the UTL_FILE.PUT_RAW API to write out data in the correct character set. To be honest, I've never tried this approach.
    Edited by: Centinul on Sep 21, 2012 8:16 AM

  • How to set encoding

    Hi!
    How do I set the encoding in an xml-file?
    I'm using the DocumentBuilder to create a Document and adds data to the DOM tree. Then I'm using a Transformer to write the DOM tree to a stream.
    The default encoding is UTF-8. I want to change this to iso-8859-1. How do I do that?
    Thanks,
    Fredrik

    Transformer transformer = null;  // initialize in a spiffy way
    transformer.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");- Saish

  • How to set encoding in XMLGen

    I need to have an XML doc generated from the server with the encoding set to Big5.
    I just was looking at the XMLGen utilties to replace our own PL/SQL procedures for generating XML from a query. However I can't see any option to specify the encoding.
    Does anyone know how to do this.
    Rob
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rob Edgar:
    I need to have an XML doc generated from the server with the encoding set to Big5.
    I just was looking at the XMLGen utilties to replace our own PL/SQL procedures for generating XML from a query. However I can't see any option to specify the encoding.
    Does anyone know how to do this.
    Rob
    <HR></BLOCKQUOTE>
    XMLGEN.SETENCODINGTAG('ISO-8859-P1');
    will do this for the output XML data. You must specify the charater set based on the NLS_LANG environment variable/registry setting to match this tag.
    I used TOAD to look at the SYS.XMLGEN package definition to see extra info on this utility. You should be able to do the same using the ALL_SOURCE view from SQL*Plus.
    null

  • How to set encoding for Web-To-Go??

    When the first launch of the Mobile Server (webtogo), there's a line showing the conversion for the charset encoding, like from MS950 to BIG5 for Chinese windows. Now I'm facing a problem where I need the encoding be UTF-8. Could someone please tell me where can I set this? Thank you very much for your help.

    Hi Celine,
    As I know, 1st your Oracle DB char set should be UTF8. 2nd Char set convertion is process in JAVA program.
    Regards
    Nicholas

  • How to set encoding type for e4x result

    I have a application with front end Flex and Server side App
    in Java. I am using HttpService to communicate to Java application
    (Web). I am sending data in xml format to flex and parsing it as
    e4x format. From service side I am setting the charset as
    windows-1252 and xml encoding is also windows-1252. In Flex I am
    getting some junk characters. But When I post the same http request
    from browser, I am able to view the characters with expected
    encoding.
    Can anybody clue me on getting xml data in required encoding
    type (charset) in Flex.
    Thanks in Advance,
    Gokul Ram.T

    The message is old, but the problem is opened and I believe that many people have troubles with getting appropriate encoding in e4x result.
    I have excactly same problem like Gokul, only difference is that I am trying to get ISO-8859-2 charset. HttpService deffinition looks like this:
    var source:HTTPService = new HTTPService();
    source.method = "POST";
    source.resultFormat = "e4x";
    source.contentType = "text/xml; charset=ISO-8859-2";
    source.headers = {"Content-Type": "text/xml; charset=ISO-8859-2"};
    So I suppose that everything what can be set is set. But still in result XMLthere are no national chars. I also get correct XML when I request it in browser, but requesting by Flex and HttpService makes problem.
    Does anyone have same problem and find out something to handle this?

  • Apex Listener return blank pages with no configuration errors!

    - I set up an Apex Listener "Version:1.1.3.243.11.40" at "10.0.114.11" in standalone mode.
    - I configured Apex Listener via http://10.0.114.11:8585/apex/listenerConfigure and return with no errors.
    - I get http://10.0.114.11:8585/apex/listenerStatus, it returned this:
    Current Time:     Tue Dec 13 17:06:32 ICT 2011
    Server Uptime:     0 Days 01:10:14.101
    Total Accesses:     38.0
    Total Traffic:     161.34K
    Total Errors:     0
    Total File Downloads:     0
    Total Processing Time:     0 Days 00:00:09.354
    Processing Time in milliseconds:     Minimum: 20 Average: 246 Median: 64 Maximum: 3062
    Database Time in milliseconds:     Minimum: 14 Average: 61 Median: 50 Maximum: 204
    Active Requests:     0
    Connections in the pool apex:
    Active: 0 Available: 1
    But when I go to "http://10.0.114.11:8585/apex" or "http://10.0.114.11:8585/apex/apex_admin", I got blank pages.
    The page displays "Application Express Login" or "Application Express Administration Services" in the tab at the top of IE, but nothing else. Anyone have any ideas what could be happening here ?
    thanks so much,

    Hi Udo!
    I run apex_listener with this below command and the output is that:
    java -Dapex.home=/tmp/apex -Dapex.images=/tmp/apex/apex/images -Dapex.port=8585 -Dapex.erase -jar /source_install/apex_listener.1.1.3.243.11.40/apex.war
    INFO: Starting: /source_install/apex_listener.1.1.3.243.11.40/apex.war
    See: 'java -jar apex.war --help' for full range of configuration options
    INFO: Extracting to: /tmp/apex
    INFO: Using classpath: file:/tmp/apex/apex/____embedded/start.jar:file:/tmp/apex/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/tmp/apex/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/tmp/apex/apex/WEB-INF/lib/je-4.0.103.jar:file:/tmp/apex/apex/WEB-INF/lib/apex.jar:file:/tmp/apex/apex/WEB-INF/lib/ojmisc.jar:file:/tmp/apex/apex/WEB-INF/lib/ucp.jar:file:/tmp/apex/apex/WEB-INF/lib/xdb-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/xmlparserv2-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojdbc6.jar:
    INFO: Starting Embedded Web Container in: /tmp/apex
    Dec 13, 2011 6:40:22 PM ____bootstrap.Deployer deploy
    INFO: Will deploy application path=/tmp/apex/apex/WEB-INF/web.xml
    Dec 13, 2011 6:40:22 PM ____bootstrap.Deployer deploy
    INFO: deployed application path=/tmp/apex/apex/WEB-INF/web.xml
    Using config file: /tmp/apex/apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=1000
    APEX Listener version : 1.1.3.243.11.40
    APEX Listener server info: Grizzly/1.9.18-o
    Dec 13, 2011 6:40:23 PM com.sun.grizzly.Controller logVersion
    INFO: Starting Grizzly Framework 1.9.18-o - Tue Dec 13 18:40:23 ICT 2011
    INFO: http://localhost:8585/apex started.
    Using JDBC driver: Oracle JDBC driver version: 11.2.0.2.0
    I don't know how to "could you please check if you configured the directory for the static contents ("images") correctly"
    because the Installation Guide of Oracle about Install Apex in standalone mode do not tell me to configure images any more. I just run apex listener with above command "java -Dapex.home=/tmp/apex -Dapex.images=/tmp/apex/apex/images -Dapex.port=8585 -Dapex.erase -jar /source_install/apex_listener.1.1.3.243.11.40/apex.war".
    Thank you for your reply,Udo!

  • The URL from Apex Listener.

    Hi everybody!
    I set up my Apex Listener in a Standalone Mode
    How can I set up my URL with my words such as: http:/localhost:8585/myapplication/f?.......
    replace for the default URL: http:/localhost:8585/apex/f?.......
    I don't know where my DAD is, and how many steps should I do to complete this changes?
    And how about
    http://localhost:8585/apex" or "http://localhost:8585/apex/apex_admin?
    Thanks for any help.

    Hi,
    the APEX Listener has fixed (hard coded) contexts in Standalone Mode, so you can't do that. Either deploy the war file to a regular JEE server where you can choose the context, or put a HTTP (reverse) proxy in front to do the switch for you.
    Note that Standalone Mode is not intended to be used for productive deployments, but for testing and development purposes only.
    -Udo

Maybe you are looking for

  • Formatted External Hard drive won't work

    I formatted my external hard drive using the MS-DOS(FAT) in Disk Utilities so I could use it on my windows and on my mac. After the formatting finished, I copied some folders to my hard drive from my macbook and ejected it, then plugged it to my wind

  • G5 having a host of problems after 10.4.8 update

    Does anyone know how or if there is way to go back to 10.4.7 now that I'm running 10.4.8? My G5 use to crash at startup about 30-40% of the time right out of the box. Yes I have one the (Late 2004) 1.8GHz G5's. These problems continued until Apple fi

  • I'm new to Java, anyone want to lend a hand?

    Please copy my program in to Java and take a look. What I am trying to do is when the button is pressed to buy a Mr Big bar I want the quantity value to rise by one, only it doesn't. I have tried several things to no avail! I may be missing something

  • Problem in compiling a program

    i am using an API, and have a problem in executing a program which uses the API the source code is here import java.io.*; import org.apache.lucene.document.*; import org.apache.lucene.index.*; import org.apache.lucene.analysis.*; import org.apache.lu

  • How to include a html from different machine?

    I've tired the inculde tag, but it seem unable to inculde files from other machines... could anyone teach me how to do so?! thanks!!!