?xml version='1.0' encoding= 'windows-1252'?

Jspx opens with a default encoding of windows-1252. Can this jspx webpage be opened on an appl mac machine with the same encoding?
Thank,
Ruchir

Hi,
there is no limitation mentioned
http://en.wikipedia.org/wiki/Windows-1252
However, driving it to a testrun will give you the practical answer
Frank

Similar Messages

  • What does this line of code do: ?xml version="1.0" encoding="windows-1252"?

    When I add this code to a new xhtml file and validate for XML I get the following error: Character Encoding mismatch! [XHTML 1.0 Transitional]

    Google says: http://www.w3schools.com/xml/xml_encoding.asp
    If this is of no help, you'll need to give a little more info - like what did you do, the code, why your using a windows encoding etc.

  • Getting null value while parsing "XML String" with  encoding WINDOWS-1252.

    Hi,
    when I am converting the Follwoing "xml string " to Document, I am getting the "null" as a document value.
        String strXML =  "<?xml version="1.0" encoding="WINDOWS-1252"?>
                              <category name="SearchByAttributes" value="Search By Attributes">
                                <item name="ORDER_LINE_ID" description="Application Search Attributes" >
                                   <attribute name="Sequence" value="0001"/>
                                 </item>
                                </category>"      
    My "xml string" has the encoding vaule: WINDOWS-1252.
    I am using the following code to convert the "xml string" to Document. I am getting the Document values as a "null" while converting the above "string xml"
            String strXML = //my above string xml.
            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            docBuilderFactory.setIgnoringElementContentWhitespace(true);
            docBuilder = docBuilderFactory.newDocumentBuilder();
            doc = docBuilder.parse(new InputSource(new StringReader(strXML)));              
            System.out.println("doc value.."+doc)//I am getting null value for "doc".
    Can anyone help me to resolve the issue.

    Thagelapally wrote:
    I am coverting the below "XML string" to Document, once it is converted I am reading that Document,which have an "attribue" Element in.
      String strXML = "<?xml version="1.0" encoding="WINDOWS-1252"?>
    <category name="SearchByAttributes" value="Search By Attributes">
    <item name="ORDER_LINE_ID" description="Application Search Attributes" >
    <attribute name="Sequence" value="0001"/>
    </item>
    </category>" I am using the above code to read the Document. When run the code in "OC4J Server" and using Jdeveloper as an editor,I am able to perfectly read the "attribute" element in the document with out any problem.Println statement printing as I expected.
    System.out.println("Element Name..."+listOfAtt.getNodeName());
    //getting Element Name as...."attribute"(as expected)
    System.out.println("Element Attibrute list....."+elementAtt);
    //getting Element Attribute list as an...."oracle.xml.parser.v2.XMLAttrList@afe"But when run the same code(reading the same Document) in Tomcat and Eclipse,println satatement not printing as i expected.
    System.out.println("Element Name..."+listOfAtt.getNodeName());
    //getting Element Name as...."#text"(I am expecting output value "attribute" but it is printing "#text" which i don't know)
    System.out.println("Element Attibrute list....."+elementAtt);
    //getting Element Attribute list as an...."null"(I am expecting output value object reference but it is printing "null"
    (without the rest of the code, i'm guessing that) most likely you are grabbing the first child node of the item element. however, you are not accounting for some text nodes that are most likely in that list, like the whitespace between the item element and the attribute element. please go read some tutorials on xml, there are thousands of them out there, and they will answer all you initial questions much more efficiently than posting each step to the forums.

  • Deployment of JSP to Weblogic6.1: Encoding windows-1252" not supported

    When i try to deploy my JSP aaplication deployment 'webapp1.deploy' to Weblogic6.1, the following error raised:
    [weblogic.xml.process.XMLParsingException: The encoding "windows-1252" is not supported. - with nested exception:
    I have tried to change the endoding setting of project but no changes updated.
    Thanks in advance,
    Anupam
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Change the character encoding to UTF-8 in the project settings
    Double-click on the project settings.
    Select Compiler
    Change character encoding.
    Check the following URL for a how-to
    http://www.javaskyline.com/features/ide/jdevwls/jdevwls.html
    raghu
    JDev Team

  • Why ' ?xml version="1.0" encoding="UTF-8"? ' is not appearing in XML ( 9.2)

    Hi,
    I am using following SQL query to generate output from XML
    select
    XMLTYPE
    ('<?xml version="1.0" encoding="UTF-8"?>'||
    xmlelement("bank",
    XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
    'http://www.XXXX.xsd' AS "xsi:nonamespaceSchemaLocation" ),
    xmlelement("Transaction",
    xmlforest(
    intraday "MessageCode",
    actnum "ToAccountNo",
    v00090 "ToBranchCode",
    v00230 "CurrencyCode",
    amt "Amount",
    trandt "TransactionDate",
    valuedt "ValueDate"),
    xmlelement("CustomerRefNo",
    xmlforest(
    utr_number "ReferenceNo1",
    ref1 "ReferenceNo2",
    ref2 "Custtype",
    r1 "SequenceNo"
    x1
    from
    It is working fine but '<?xml version="1.0" encoding="UTF-8"?>' it is not coming as header of output My output is coming like
    <bank xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:nonamespaceSchemaLocation="http://www.XXXX.xsd">
    <Transaction>
    <MessageCode>0100</MessageCode>
    <ToAccountNo>012340123456</ToAccountNo>
    <ToBranchCode>01234</ToBranchCode>
    <CurrencyCode>INR</CurrencyCode>
    <Amount>11.00</Amount>
    <TransactionDate>2007-01-15T17:54:31</TransactionDate>
    <ValueDate>2007-01-15</ValueDate>
    Kindly help.
    PJP

    Try using the XMLRoot function.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#sthref1566

  • HTTP Receiver Adapter - delete ?xml version="1.0" encoding="UTF-8"?

    Hi,
    Is it possible to delete the part below when sending an HTTP request through HTTP receiver adapter without any java/abap/xslt mapping?
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SELL xmlns:ns0="http://test.com/Sell">
    Thanks
    Arman

    Hi,
    <?xml version="1.0" encoding="UTF-8"?>
    Specifies that the given message is xml
    <ns0:MT_SELL xmlns:ns0="http://test.com/Sell">
    Specifies its a MessageType of the payload, without this that message is not identifies and is not processed. Its manditory to have these. Other wise error will raise.
    Regards,
    Prasanna

  • How to insert ?xml version="1.0" encoding="utf-8"? before an element

    Hi, I have a message which must contain XML inside XML, this internal one must start off with the <?xml version="1.0" encoding="utf-8"?> string.
    Is there a nice trick for inserting this before an element? (not at the beginning of the mapping, a specific place further inside the XML).
    All of the other elements are mapped as part of the message type.

    Did you check Message Mapping : Play around with target structure .
    You can do this easily with UDF.
    public String setPrevalue(String var1,Container container) {
         StructureNode node = ((StructureNode) container.getParameter("STRUCTURE_NODE"));
         node.setPreValue("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
         return""; 

  • How to remove ?xml version="1.0" encoding="UTF-8"? .

    HI Experts,
                      i am doing one scenario file to file . in soruce payload i have <?xml version="1.0" encoding="UTF-8"?> . i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
    regards,
    alekhya.

    Hello,
    i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
    You can use XSLT and add
    <xsl:output method="text" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
    in your output declaration
    Hope this helps,
    Mark

  • Unexoected ?xml version="1.0" encoding="utf-8"?

    Hi everybody.
    I having the follow problem.
    I have a anyType field inside a wsdl interface. when i invoke the web service, the resulting value is that:
    <rootElement>
    <?xml version="1.0" encoding="utf-8"?>
    <field1>Something1</field1>
    <?xml version="1.0" encoding="utf-8"?>
    <field2>Something2</field2>
    <?xml version="1.0" encoding="utf-8"?>
    <field3>Something3</field3>
    </rootElement>
    somebody knows why this could happen.????..
    any sugestion could be so helpfull

    just put this
    <?xml version="1.0" encoding="utf-8"?>
    once, at the very top of the document. (before the root)

  • Remove ?xml version="1.0" encoding="UTF-8"? from xml file

    I have generated an XML file using sax paraser. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.

      try
                            FileWriter fr = new FileWriter(new File(path, fileName));
                            Document docNode = docNodeMap.get(name);
                            XMLOutputter outputter = new XMLOutputter();
                            outputter.output(docNode, fr);
                            fr.close();
                    catch (IOException e)
                            e.printStackTrace();
                    }this the code generating xml file.

  • Adding  " ?xml version="1.0" encoding="UTF-8"? "   in generated xmls

    Hi,
    I am using xmlbeans framework to generate xmls , i am able to generate xml using document object but header "<?xml version="1.0" encoding="UTF-8"?>" is not coming in that xml file , how to include this in output xml files.

    Hi,
    I don't know the XMLBeans Framework, but this header is called XML declaration.
    In general there are options to configure this (i. e. setOption("omit-xml-declaration", false);).
    Anyway, I don't know the exact syntax in this framework but have a look at this, maybe it helps somehow.
    http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveNoXmlDecl()
    Best Wishes
    esprimo

  • Printing ?xml version=\"1.0\" encoding=\"UTF-8\"? at the top of my xml

    Can anyone spot where I'm going wrong?
    I'm creating a DOMDocument like this:
    Document document = null;
    DocumentBuilder doc_builder = null;
    try
         doc_builder = factory.newDocumentBuilder();
    catch(ParserConfigurationException e){/* deal with exception*/}
    document = doc_builder.newDocument();Adding various stuff to it, then saving it like this
    Source source = new DOMSource(document);
    Result result = new StreamResult(idx);
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.setOutputProperty(OutputKeys.METHOD, "xml");
    xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); //??????
    xformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
    xformer.setOutputProperty(OutputKeys.INDENT, "yes");
    xformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    xformer.transform(source, result);All the usual stuff.
    But how do I get it to write:
    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
    at the top of the page?
    One further thing...
    If I have nothing to write in my xml file, it just spits out a blank file.
    Instead, I want it to write:
    <?xml version="1.0" encoding="UTF-8"?>
    <upIdx/>
    a simple:
    document.createElement("upIdx");doesn't appear to do anything if the block "upIdx" is subsequently empty.
    Many thanks

    duugggh....
    (well it is friday evening.. ... long week.. all that kind of stuff)
    how stupid of me....
    to answer my own question, it was here:
    xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); //??????
    xformer.setOutputProperty(OutputKeys.VERSION, "1.0");
    xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

  • Remove ?xml version="1.0" encoding="UTF-8"?   from XML doc

    I have generated an XML file using javax XML transformer. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>
    which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.
    Here is the transformer that I have used.
    public static void printToXML(String fileName){
               try{
                    File file = new File(fileName);
                    Transformer tr = TransformerFactory.newInstance().newTransformer();
                    tr.setOutputProperty(OutputKeys.INDENT, "yes");
                    tr.setOutputProperty(OutputKeys.METHOD,"xml");
                    tr.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "3");
                    tr.transform( new DOMSource(dom),new StreamResult(new FileWriter(file)));
               }catch(TransformerConfigurationException tcex){
                    logger.info("TransformerConfigurationException at printToXML method in CSVtoXML.java");
                    logger.error("TransformerConfigurationException", tcex);
               }catch(TransformerException tex){
                    logger.info("TransformerException at printToXML method in CSVtoXML.java");
                    logger.error("TransformerException", tex);
               }catch(IOException ioex){
                    logger.info("IOException at printToXML method in CSVtoXML.java");
                    logger.error("IOException", ioex);
          }

    Well, it is a pretty important line. Why do you need it removed? Anything that really processes XML knows how to read it and determine what encoding was used. That is vital, if you look at the number of questions posted here about foreign language text in XML. If you really have a text processsor that knows how to open a file called something.xml, and knows how to process or ignore most of the pointy bracket things, but not this one, it is time to fix it.
    Dave Patterson

  • How to remove ?xml version="1.0" encoding="UTF-8"? in receiver payload

    hi experts,
        how to remove <?xml version="1.0" encoding="UTF-8"?> from receiver payload.
    my source srtucture is ,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="http://www.xxx.com">
    <Customer>
    <CustNo>xxx</CustNo>
    </Customer>
    </ns0:entity-data>
    in receiver payload i dont wont " <?xml version="1.0" encoding="UTF-8"?> "
    i want receiver payload
    <ns0:entity-data xmlns:ns0="http://www.xxx.com">
    <Customer>
    <CustNo>xxx</CustNo>
    </Customer>
    </ns0:entity-data>
    can any one provide me the solution for this.
    regards,
    ganesh

    hi vijayakumar,
         thanx for ur response....

  • ?xml version="1.0" encoding="UTF-8"? generates error=unsupported encoding

    Why does the header with encoding set to UTF-8 get rejected by the Oracle XML C++ V2 Parser when one of the features of this version is UTF-8 support?

    Hi
    If I change my document header from <?xml version="1.0" encoding="UTF-8"?> to <?xml version="1.0"?> then it parses without error. Will this situation change if I intall ORACLE_HOME? If so, why do I need to install ORACLE_HOME to get the XML Parser to work?
    Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xmlteam ([email protected]):
    Hi,
    Do you have your ORACLE_HOME set up correctly?
    Thanks,
    Oracle XML Team<HR></BLOCKQUOTE>

Maybe you are looking for

  • How do I reinstall my operating system and keep my data?

    I recently installed a new time capsule and created a network.  I have a three year old iMac (early 2009) on this network and a Mac Book Pro (late 2011). In addition, I backed up iTunes and iPhoto libraries to an external drive, with the intention of

  • How to link within a spry data set?

    Hi everybody, I am working with DW CS4 and want to know how to insert a link to another html site within the Spry data set. All I am archieving at the moment is to write the hyperlink-addy as plain text on my website. I have this kind of structure in

  • Anyone Successfully Using iChat Today? (Fri, Jun23rd)

    Just checking to see if anyone is successfully getting an AV chat session going today. I usually connect with no problems, but since the past day or so, I haven't been able to connect with either any of my buddies (California/New York/Shanghai). Migh

  • Basic vs Advanced Compression in Oracle 11g

    Hi, We are going to install Oracle 11gR2 in one new database server. Since the database will be used for Data Warehouse purposes and our company has rejected to pay licenses for "Oracle Advanced Compression", I wanted to know which options of "Basic

  • Can I use a Blackmagic Design Intensity Pro HDMI card in a Mac Pro 1.1?

    I am looking for a video capture card. Cna I use this?