How to change UTF-8 encoding for XML parser (PL/SQL) ?

Hello,
I'm trying to parse xml file stored in CLOB.
p := xmlparser.newParser;
xmlparser.parseCLOB(p, CLOB_xmlBody);
Standard PL/SQL parser encoding is UTF-8. But my xml CLOB contain ISO-8859-2 characters.
Can you advise me, please, how to change encoding for parser?
Any help would be appreciated.
null

Do you documents contain an XML Declaration like this at the top?
<?xml version="1.0" encoding="ISO-8859-2"?>
If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

Similar Messages

  • How to change Content-Transfer-Encoding for mail sending

    Hello Experts,
    I need to send some documents through mail which i am doing with the help of cl_output_service=>document_output method. Mail is been send succesfully.
    But in the payload content which got from Exchange server:
       X-Mailer: SAP Web Application Server 7.10
       Content-Type: text/plain;
        charset="us-ascii"
       Content-Transfer-Encoding: quoted-printable
    Can any one help me, how i can change Content-Transfer-Encoding field to some other format which is not  'quoted-printable'.
    Thanks & Regards,
    Dheeraj

    Do you documents contain an XML Declaration like this at the top?
    <?xml version="1.0" encoding="ISO-8859-2"?>
    If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

  • Can't use UTF-16 encoding with XML Parser for Java v2.

    This is my XML Document:
    <?xml version="1.0" encoding="UTF-16" ?>
    <Content>
    <Title>Documento de Prueba de gestin de contenidos.</Title>
    <Creator>Roberto P     rez Lita</Creator>
    </Content>
    This is the way in which i parse de document:
    DOMParser parser=new DOMParser();
    parser.setPreserveWhitespace(true);
    parser.setErrorStream(System.err);
    parser.setValidationMode(false);
    parser.showWarnings(true);
    parser.parse(
    new FileInputStream(new File("PruebaA3Ingles.xml")));
    I've got this error:
    XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    I am using the XML Parser for Java v2_0_2_5 and I am a little
    confused because the documentation says that the UTF-16 encoding
    is supported in this version of the Parser.
    Does anybody know how can I parse documents containing spanish
    accents?
    Thanks in advance.
    Roberto P     rez.
    null

    Oracle just uploaded a new release of V2 Parser. It should
    support UTF-16.
    Yet, other utilities still have some problems with UTF-16
    encoding. Seems we just
    have to wait this one out.
    BTW, I'm trying to use Japanese. We, also, have some problems
    with JServer.
    Roberto P     rez (guest) wrote:
    : This is my XML Document:
    : <?xml version="1.0" encoding="UTF-16" ?>
    : <Content>
    : <Title>Documento de Prueba de gestin de contenidos.</Title>
    : <Creator>Roberto P     rez Lita</Creator>
    : </Content>
    : This is the way in which i parse de document:
    : DOMParser parser=new DOMParser();
    : parser.setPreserveWhitespace(true);
    : parser.setErrorStream(System.err);
    : parser.setValidationMode(false);
    : parser.showWarnings(true);
    : parser.parse(
    : new FileInputStream(new File("PruebaA3Ingles.xml")));
    : I've got this error:
    : XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    : I am using the XML Parser for Java v2_0_2_5 and I am a little
    : confused because the documentation says that the UTF-16
    encoding
    : is supported in this version of the Parser.
    : Does anybody know how can I parse documents containing spanish
    : accents?
    : Thanks in advance.
    : Roberto P     rez.
    null

  • How to change default response encoding for not jsp files

    Hi
    Question about Weblogic Portal&Serwer 10.
    For standard web applications from war archiwes, html etc. files are send with default server response
    "Content-Type: text/html; charset=ISO-8859-1".
    The question is how to disable this default header
    or how to change this header to correct encoding.
    PS.
    I found solution only for ear' applications ...
    with file META-INF/weblogic-application.xml and webapp.encoding.default parameter. This works well for ear's.

    Thanks. I feel a bit like a dummy for not seeing that but so it goes. What I was looking for, in a perfect world, was to set a preference to permanently sert a default folder on an external drive to store the .dvdproj files once they are made.......but your suggestion is close enough to my original intention.
    Thanks again.

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • How to change "No Password required" for Guest to "Yes"account under Somarsoft Dumpsec

    Check Content:
    Verify all accounts require passwords.
    Run the DUMPSEC utility.
    Select "Dump Users as Table" from the "Report" menu.
    Select the following fields, and click "Add" for each entry:
    UserName
    SID
    PswdRequired
    AcctDisabled
    Groups
    If any accounts have "No" in the "PswdRequired" column, this is a finding.
    Some built-in or application-generated accounts (e.g., Guest, IWAM_, IUSR, etc.) may not have this flag set, even though there are passwords present.  It can be set by entering the following on a command line: "Net user <account_name> /passwordreq:yes".

    Hi Malik,
    How to change "No Password required" for Guest to "Yes"account under Somarsoft Dumpsec
    Please contact SystemTools Technical support to get more efficient support regarding this matter:
    http://www.systemtools.com/support.htm
    http://www.systemtools.com/toolboard/
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to change the sysadmin password for maintenance wizard if you have forg

    How to change the sysadmin password for maintenance wizard if you have forgotten the password and can't log in.

    Log into SQL*Plus as the $EOFUSER and do:
    update eof_user set password = 'passwd_you_want' where user_id = 0;
    commit;
    -Vikki
    Product and Development Manager for Maintenance Wizard

  • How to change the Display Pattern for Decimal Fields dynamically

    hi all,
    Can any one help me how to change the display pattern for decimal fields dynamically???
    Currently I am using z,zzz,zzz,zz9.999 Display pattern for Quantity Field. If the value is blank it is displaying as 0.000 on the Screen. But I don't want this to be printed.
    Please help me how to solve this ASAP.
    Thanks,
    Prabhu

    Hi,
    Alternatively you can handle it in the context.
    In the context area, click on the quantity. In the bottom, click on the conditions tab, and put a condition
    <quan field> NE initial.
    So the field will not be printed if there is no value.
    Regards,
    Vidya Chowdhary A.

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • How To Change Root Folder Reference for href - anythingslider links?

    How To Change Root Folder reference for href - anythingslider links?
    My root folder in Web Apps>Carousel in admin is set at /carousel/ (http://bestinscotland04.businesscatalyst.com/carousel/slide-2 - as an example) but I want it to link to a specific page at the root level (specifically /scottish-menswear/mens-highland-kilt-outfit).
    I can't find the controls, css, or html file to enable my picture to link to this product page.
    I'm sorry for the amateur question - I've never had formal training and it's always a reverse-engineering situation with me.
    Thank you.

    One way to address this is to use the Virtual Web Host feature.
    I've uploaded a simple application note to help guide you through the steps.
    An alternative would be to create an html at /Web/ which forwards to /Web/Joomla.  Not a great solution, I know.
    I'm sure there is a way to change the setting in a linux configuration file, but I don't know which file that is in.  Maybe some other linux savy community members could help out with that?

  • Error trying to Change the default encoding for JVM

    I tried to change the default encoding for my JVM on a SUN but when i use the java -Dfile.encoding = ISO8859_1 command, i obtain the following error:
    Error occurred during initialization of VM
    java.lang.Error: java.io.UnsupportedEncodingException:
    Is there something wrong with my command or something that i have to take into account in order to try to change this property?
    I am using the j2sdk1.4.1_02 and now i have ISO646-US an i need to use ISO8859_1 on a Sun Solaris Box
    Thanks in Advance.

    try Dfile.encoding=ISO-8859-1
    (I saw that in http://forum.java.sun.com/thread.jsp?forum=37&thread=405778&tstart=15&trange=15)

  • How to change RSAPublicKeySpec to Key for encrypt?

    I have RSAPublicKeySpec and I want to encrypt message with this key.
    How to change RSAPublicKeySpec to Key for encrypt message?

    I try to do this
    try {
    kf = KeyFactory.getInstance("RSA");
    pk = kf.generatePublic(pubCard);
    catch (NoSuchAlgorithmException ex4) { System.out.println("1");
    catch (InvalidKeySpecException ex4) { System.out.println("2");
    try {
    Cipher cipher = Cipher.getInstance("RSA");
    try {
    cipher.init(Cipher.ENCRYPT_MODE, pk);
    catch (InvalidKeyException ex2) { System.out.println("a");
    try {
    ticket = cipher.doFinal(mes.getBytes());
    catch (IllegalStateException ex3) {System.out.println("b");
    catch (IllegalBlockSizeException ex3) {System.out.println("c");
    catch (BadPaddingException ex3) {System.out.println("e");
    catch (NoSuchAlgorithmException ex1) {System.out.println("f");
    catch (NoSuchPaddingException ex1) {System.out.println("g");
    It cougth exception that "NoSuchAlgorithmException"
    What wrong with line
    Cipher cipher = Cipher.getInstance("RSA");
    please tell me

  • How to change the menu text for menu exit in Version 3.1i

    Hi,
    I am working on an enhancment in CJ02 transaction in 3.1i version. I have implimented menu exit for it , but I am unable to change the menu text for it.Please let me know how to change the menu text for that menu.
    Thanks
    Suman

    Hi Shree,
    Thanks for the response. Please find the Enhancement name here "CNEX0006".
    Thanks
    Suman

Maybe you are looking for

  • NEED HELP: Nokia N8 deletes my messages

    I think it's been ever since the PR update 1.2 my phone will automatically delete all my messages by it's self after a random time. It deletes all my messages from the Inbox, Sent, everywhere, even messages saved to the Sim. I went into the settings

  • Converting PDF to Word for Mac version 14

    I subscribed to PDF Export and tested it by converting a Word for Mac doc to a PDF and then opening same in Word. My font was Palatino regular. It opened alright, but Calibri was substituted for Palatino. How can I change this.

  • Verity collection date ranges

    I have a collection of documents differentiated by topic and date. The search result looks something like this, "/Supply/Supply2004/23Jan06". I use a calendar function that will input a date into a textbox in the following format: MM-DD-YYYY. I am no

  • Error # 2032 while opening SAP BI Query in Xcelsius using Direct connectivi

    Hi Experts, I have following set up - Xcelsius Enterprise 2008 SP3 SAP BI EHP1 - SP5 Operating System - XP SAP GUI 710. I have two systems - 1. Internal IDES and 2. Client system I open a Xcelsius and try to create a connection "SAP BW NetWeaver conn

  • Can't use iMac running OS 9.0.4 for the internet

    Hi! I appreciate any help you can give me. I've got an older iMac that I just want to use to access the internet for my kids. Here is all the info from the machine I can think might be useful: Mac OS: 9.0.4, Mac OS ROM 5.5.1 Processor: PowerPC G3 Spe