XML Parsing Base64 Content - Special Characters Umlaut etc

Hello!
I am currently parsing an XML file which has it's content encoded in Base64. My application parses the XML file (from a provider) and pass on the content to a GUI where the user can change the value of the nodes and store the same back in a new XML (which is then to be sent back to the provider). The Application uses only "UTF-8" . I am currently using the Base64 class provided at http://iharder.net/base64
The problem I have is that the special characters like �, � etc, are being depicted as (?) i.e. unreadable. Only when I control the decoding process i.e. String resoolt = new String (result.getBytes(), "UTF-8") do I get the correct content, and the same can be posted on the GUI.
The application produces an XML file (The application in question is a translation app), which when re-opened in the application for retranslation has the same problem... it is shown with teh special characters with (?).
After a lot of debugging I found that the XML produced by the application does not need the forcing of content into UTF-8 using the code above, it is read automatically correctly (with all the content correct), but due to the coding I have done... String resoolt = new String (result.getBytes(), "UTF-8") the nodes are decoded with the earlier problem umlauts et al missing.
Now I could use a test to differntiate between the two cases XML from the provider or the XML which is produced by my own app, and doesn"t work on the Provider and treat them differently, but I don't want this solution since the XML which my app produces is not accepted as input at the providers.
So my query.. what is the best way to go about it now... I am quite stymied >(
Thanks!
Tim

Amazingly enough some other user has the identical problem to yours and has expressed it in exactly the same words. Has the same name as you too.
http://forum.java.sun.com/thread.jspa?threadID=606929&tstart=0
(Cross-posting is frowned on here.)

Similar Messages

  • Problem with special characters (umlaut)

    Hi,
    I have a text box in my form.
    when I am entering the normal characters it working fine and the values are
    persisting quiet well in the database but when I am entering special characters (umlaut characters),
    it is not storing them properly in the database.
    I have checked in the logs at the application server side and the problem is while getting the values from
    the request. The JSP which is submitting the request I have explictly put the following line:
    request.setCharacterEncoding("iso-8859-1");
    But this also not seems to be working.
    Could you please let me know the resolution of this problem.
    Thanks in advance
    Amit

    Hi,
    Thanks for the reply.
    I have checked the database and there is no problem there.
    To check if I am getting the correct values from the JSP I have put the following code in my action class:
                                  if(columnName.equalsIgnoreCase("REMARKS"))
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       log.debug("Character Encoding value of � is "+Character.getNumericValue('�'));
                                       String str = value.toString();
                                       char[] remarkArray = new char[str.length()];
                                       str.getChars(0, (str.length()-1), remarkArray, 0);
                                       for (int i = 0; i < remarkArray.length; i++)
                                            log.debug("Encoding value of "+remarkArray[i]+" is "+Character.getNumericValue(remarkArray));
    In the remarhs I am setting the value in the form as "������"
    and I am getting the following in the logs:
    Character Encoding value of &#9472; is -1
    Character Encoding value of � is -1
    Character Encoding value of &#9604; is -1
    Character Encoding value of � is -1
    Character Encoding value of � is -1
    Character Encoding value of � is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of &#9488; is -1
    Encoding value of &#9500; is -1
    Encoding value of � is -1
    Encoding value of &#9500; is -1
    Encoding value of is -1
    Kindly suggest what may be the issue??
    Amit

  • Bpel parsing issue with special characters...

    Hi All,
    We are integrating Oracle Sales Order information with OTM as Order Releases.
    For this we are sending the Sales Order in the form of clob from the procedure to the Bpel process.
    1. A PL/SQL procedure would send the Sales order XML as a CLOB.
    2.In the BPEL process , we are performing ora:parseXML() function on the clob obtained.
    3.A patch was installed on the BPEL SOA server:
    10.1.3.3.1 MLR#8, Patch#6906880 which was supposed to handle all the parsing activities at run time.
    4. But when ever any special character viz..; #,UNIT¿S etc the BPEL process is failing with a fault string due to Parsing error.
    5. Could you please provide us a workaround for solving this issue ASAP with all the special characters.
    I have provided a sample xml tag due to which the parsing is failing in the bpel process. here it is failing because it is not able to parse : UNIT¿S successfully...
    <SHIPPING_INSTRUCTIONS>
    **San Dieg UNIT¿S contact name is Jenny Haden 858-609-1170** 12/12/08
    **Updated Contact is ASHTON REYES 72-696-1525, hours are 830-5 only, N/S. Millyz DELIVERY
    CONTACT: ELLEN HILGER @ 248-932-9000: LINE 4.1 -TRIAL CONVERSION FROM ORDER # 25766204
    </SHIPPING_INSTRUCTIONS>
    is there some other bpel patch or some other workaround using which whatever input value comes in , the bpel is able
    to successully parse that through..
    we are stuck with this special character parsing issue as of now and go live is very near ...your help/inputs would be highly appreciated
    thanks

    Guys,
    I am new to OTM and SOA/BPEL architecture.
    Could you please suggest me in detail as how to integrate OTM with outside world using BPEL.
    Thanks,
    Kamleshwar

  • Processing XML files that contain Special Characters

    Hello:
    Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
    This mechanism works well. However off late I have encountered a few XML files containing characters such as &Ecirc (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
    ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'.     at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source)     at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65)     at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such &Ecirc. I was wondering if there is anyway around this problem.
    Attached is the Java Method that handles both the parsing and processing of the XML file.
    /** The method parses the Report Data and applies the Style Sheet to this data
    * @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
    * @return A sub-section of the report data (DOM DocumentFragment is returned)
    private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL urlStyleSheet;
    //Get the URL for the Style Sheet
    urlStyleSheet = new URL(strStyleSheet);
    //Create an instance of the Dom Parser
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //Parse the XSL document and create a DOM Object
    parser.parse(urlStyleSheet);
    xsldoc = parser.getDocument();
    //Parse the report document (a .xml) and create a DOM Object
    parser.parse(reportStream);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    // processor.setErrorStream(System.err);
    // Process XSL
    XMLDocumentFragment result = processor.processXSL(xsl, xml);
    return result;
    If you have any suggestions please let me know. If you need more information I will be to furnish it.
    thanks
    Mathangi

    Hello,
    I just had the same problem, you need to include the approprate entity sets so that the xsl parser will recognize them (and you won't
    get the "missing entity" error:
    if you already haven't you need to add a DOCTYPE processing instruction for your dtd, to the top of your xml files to be parsed, for ex.:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "file:///mydir/mydtd.dtd">
    then in "mydtd.dtd", add references to these 3 entity sets (if you have a dtd - if not then create one just with these entries):
    <!ENTITY % HTMLlat1 PUBLIC
    "-//W3C//ENTITIES Latin 1 for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
    %HTMLlat1;
    <!ENTITY % HTMLspecial PUBLIC
    "-//W3C//ENTITIES Special for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
    %HTMLspecial;
    <!ENTITY % HTMLsymbol PUBLIC
    "-//W3C//ENTITIES Symbols for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
    %HTMLsymbol;
    Or, grab the ".ent" files from the www.w3.org site and put them on your server in the dtd dir, and change the "http:... reference, to
    "file:...", it will be faster to parse (that's what I did). FYI, "Ecirc" is in xhtml-lat1.ent.
    Also, after I did this,I developed another problem where my xsl parser and xmlmarkup tag-converting function converts certain
    html entities to their octal counterparts, and I don't want this and don't know how to stop it (I have a posting out for this also).
    Additionally, thanks for posting your parseReport method, it just so happens that I was looking for a way to do something like that,
    it should be helpful to me.
    -JK
    Hello:
    Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
    This mechanism works well. However off late I have encountered a few XML files containing characters such as J (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
    ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'.     at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source)     at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65)     at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such J. I was wondering if there is anyway around this problem.
    Attached is the Java Method that handles both the parsing and processing of the XML file.
    /** The method parses the Report Data and applies the Style Sheet to this data
    * @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
    * @return A sub-section of the report data (DOM DocumentFragment is returned)
    private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL urlStyleSheet;
    //Get the URL for the Style Sheet
    urlStyleSheet = new URL(strStyleSheet);
    //Create an instance of the Dom Parser
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //Parse the XSL document and create a DOM Object
    parser.parse(urlStyleSheet);
    xsldoc = parser.getDocument();
    //Parse the report document (a .xml) and create a DOM Object
    parser.parse(reportStream);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    // processor.setErrorStream(System.err);
    // Process XSL
    XMLDocumentFragment result = processor.processXSL(xsl, xml);
    return result;
    If you have any suggestions please let me know. If you need more information I will be to furnish it.
    thanks
    Mathangi

  • German special Characters ( umlaut) not displaying in WebI

    Hi There,
    i'm working with on BO XI R2 SP3 installed on Solaris.
    I have problems with special german characters(umlaut) like ü, ö, ä. They are not being displayed correctly in Webi; actually they are displayed following this logic ü = u, ö = o, ä = a.
    The problem is that when i'm using a string containing one of those in the filter conditions, the query so generated returns empty results because is not matching the data in the database.
    Is there any way to display umlaut in the report result and in the LOV, as they are in the database?
    Please any suggestion is more than welcomed.
    Pierluca

    Hi,
    Could you please follow the below steps:
    1>     Check if you have international language support pack installed on Bo server. Check if you have Arialuni.ttf under fonts file under Windows directory on BO Server.
    2>     Specify Arialuni.ttf file name in fontaliases.xml under <bo installation>\fonts\
    3>     Connectivity modification
    Oracle 9
    a> Modify oracle.sbo file under
    Windows
    u201C\BOInstalledfolder\dataAccess\RDBMS\connectionServer\oracleu201D
    Under the corresponding target database engine, add the Unicode parameter with the UTF8 value as specified below;
            <DataBase Active="Yes" Name="Oracle 9">
              <Parameter Name="Library">dbd_oci9</Parameter>
              <Parameter Name="Unicode">UTF8</Parameter>
            </DataBase>
    You can do the modification under the DEFAULT section. This applies for all target databases.
    b>     Windows: Modify NLS_LANG setting in Registry
    Under Oracle/HOME0 folder, you can find NLS_LANG definition
    Default setting is(example in UK English):
         ENGLISH_UNITED KINGDOM.WE9ISO8859P 15
    Changed to:
         ENGLISH_UNITED KINGDOM.UTF8
    MS SQL Server 2000
    a>     Modify odbc.sbo file under
    u201C\BOInstalledfolder\dataAccess\RDBMS\connectionServer\odbcu201D
    Under the corresponding target database engine,
    u2022     add the Unicode parameter with the UCS2 value as specified below;
    u2022     Check the Library parameter to set with the correct Unicode library name (See Connection Server release note for more information).
        <DataBase Active="Yes" Name="MS SQL Server 2000">
              <Parameter Name="Family">Microsoft</Parameter>
              <Parameter Name="Version">rdbms_mssqlserverodbc.txt</Parameter>
              <Parameter Name="SQL External File">sqlsrv</Parameter>
              <Parameter Name="SQL Parameter File">sqlsrv</Parameter>
              <Parameter Name="Array Bind Available">True</Parameter>
              <Parameter Name="Library">dbd_wmssql</Parameter>
              <Parameter Name="Unicode">UCS2</Parameter>
              <Parameter Name="Driver Level">31</Parameter>
                </DataBase>
    You can do the modification under the DEFAULT section. This applies for all target databases.
    DB2 UDB
    a>     Modify db2.sbo file under
    u201C\BOInstalledfolder\dataAccess\RDBMS\connectionServer\db2u201D
    Under the corresponding target database engine, add the Unicode parameter with the UTF8 value as specified below;
            <DataBase Active="Yes" Name="DB2 UDB v8">
              <Parameter Name="Binary Slice Size">30000</Parameter>
              <Parameter Name="Max Rows Available">True</Parameter>
              <Parameter Name="Unicode">UTF8</Parameter>
               </DataBase>
    You can do the modification under the DEFAULT section. This applies for all target databases.
    b>  Define the Environment Variable DB2CODEPAGE with the value 1208.
    Teradata V2R5
    a>  Modify teradata.sbo file under
    u201C\BOInstalledfolder\dataAccess\RDBMS\connectionServer\teradatau201D
    Under the corresponding target database engine, add the Unicode parameter with the UTF8 value as specified below;
            <DataBase Active="Yes" Name="Teradata V2 R5">
              <Parameter Name="Unicode">UTF8</Parameter>
            </DataBase>
    You can do the modification under the DEFAULT section. This applies for all target databases.
    4> Universe - parameters - UNICODE_STRINGS - Yes
    Please let me know if this works for you.
    Thanks,
    Madhu.

  • XI XML Parser: tag content with "'", single apostrophe: invalid character

    Hi all,
    we import XML-documents with the file adapter in a sender channel. everything works well.
    But if one of the XML-tag contents contains a single apostrophe ( ' ), then the XML parser stops with an error "An invalid character was found inside an entity reference. ". The message can not be processed. If I test the message content in the mapping -> no error.
    When the single apostrophe is dereferenced by an additional single apostrophe the XML-File can be processed.
    Question: does anybody know how this can be handled because it is not very nice of SAP XI to send single apostrophes in outgoing messages but cannot handle it in incoming messages from other systems? special adapter settings?
    Thank you very much
    regards
    Hans

    check bhavesh reply
    Suppress Special Character
    also check
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
    Implementing a Java Mapping in SAP PI to remove Escape Sequences from a file

  • IS-FS-EDT:German special Characters umlaut not uploaded in the database

    Hi,
    I have problems with special German characters (umlaut) like ü, ö, ä. I am uploading BPs using External Data Transfer using flat file. Flat file contains multiple strings.
    The problem is that when I'm using a string containing one of those in the flat file text for example u201Cu201D, EDT uploaded the string without umlaut i.e. umlaut replaced with #.
    Is there any way to upload umlaut using EDT as it is in the database?
    Thanks in advance.

    Hi,
    I have problems with special German characters (umlaut) like ü, ö, ä. I am uploading BPs using External Data Transfer using flat file. Flat file contains multiple strings.
    The problem is that when I'm using a string containing one of those in the flat file text for example u201Cu201D, EDT uploaded the string without umlaut i.e. umlaut replaced with #.
    Is there any way to upload umlaut using EDT as it is in the database?
    Thanks in advance.

  • XML Parser and Content-type/encoding problem

    I've write a little and simple XML parser and a simple "trasformer" that recive an XML file and an XSL one and return HTML, here is the code:
    public static String toHTML(Document doc, String xslSource){
            ByteArrayOutputStream testo = new ByteArrayOutputStream();
            try{
                DOMSource source = new DOMSource(doc);
                TransformerFactory tFactory = TransformerFactory.newInstance();
                System.out.println("----> " + xslSource);
                Transformer transformer = tFactory.newTransformer(new StreamSource(xslSource));
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
                transformer.setOutputProperty(OutputKeys.METHOD, "html");
             transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
             transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.transform(source, new StreamResult(testo));
            }catch(Exception ioe){
                System.out.println("2 XMLTool.toHTML " + new java.util.Date());
                System.out.println(ioe);        
            return testo.toString();
        }the problem is that I would like to put the HTML code its return into a JEditorPane; now I'm trying with this code:
    JEditorPane jep1 = new JEditorPane();
    jep1.setContentType("text/html");
    jep1.setText(v);
    // 'v' is the string returned by the code posted up (the XML/XSL transformer)but I can't see anything in my JEditorPane.
    I think that the problem is this line of code that the transformer add automaticaly ad HTML code:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">Infact if I try to delete this line from the code I can see what I want but is'n good delete a line of code without understend where is the problem.
    So, can anyone help me?

    good.
    when u set ur output properties to html , transformer
    searches for all entity references and converts accordingly.
    if u r using xalan these files will be used for conversion of
    Character entity references for markup-significant
    output_html.properties
    (this should be in templates package)
    and HTMLEntities.res(should be in serialize package)
    vasanth-ct

  • Does Oracle XML Parser support Content Validation

    Hi there,
    Could someone out there give me a hint on whether the Oracle XML Parser has the capability of handling Content Validation? If yes, what's the mechanism behind it?
    From my understanding of the Oracle XML Parser, even with the validating mode turned on, the parser only validates the XML data against the DTD (if any), which involves checking whether or not the attribute names and element tags are legal, whether nested elements belong to where they are, and so on. But I dont see any Content Validation. And my guess is that this feature, namely Content Validation, is simply not supported in the current version of the Oracle XML Parser. Am I right?
    Any suggestion would be greatly appreciated. Thanks.
    ---Denali
    null

    Hi there,
    Could someone out there give me a hint on whether the Oracle XML Parser has the capability of handling Content Validation? If yes, what's the mechanism behind it?
    From my understanding of the Oracle XML Parser, even with the validating mode turned on, the parser only validates the XML data against the DTD (if any), which involves checking whether or not the attribute names and element tags are legal, whether nested elements belong to where they are, and so on. But I dont see any Content Validation. And my guess is that this feature, namely Content Validation, is simply not supported in the current version of the Oracle XML Parser. Am I right?
    Any suggestion would be greatly appreciated. Thanks.
    ---Denali
    null

  • Problem storing special characters (\, \n etc.) in the Properties file

    Hello,
    I am trying to store a string that contains special characters like \, \n, which are normally escaped using a \ character. If I try to save the Properties object into a file (using the store() method call), it doesn't store these escape characters as they are. The following is what I am trying to do:
    Properties p = new Properties();
    String samp = "This string will have a \\ and a newline \ncharacter";
    p.setProperty( "sample", samp );
    p.store( new FileOutputStream( "/path/to/my/file" ) );I am trying to achieve the following result:
    sample=This string will have a \ and a newline
    characterBut, instead, I get this:
    sample=This string will have a \\ and a newline \\\ncharacterCan somebody help me with this problem?
    Thanks,

    Thanks for your replies and efforts to help me out. I
    guess there is no solution to my unique problem.
    Basically I need this because one of my values (for a
    key) is a multi-line value. It will probably load
    fine when I use the \ character to delimit multiple
    lines, but when I want to write back the same value
    as multiple lines (using \ and \n characters), I am
    unable to do that. I don't follow, or else if you're saying what I think you are, I disagree.
    Let's say you have a String in your program that contains some \n characters, so if you print that string, say with println, on a Unix terminal, you'll see it on separate lines.
    Now you write that string out to a properties file with store().
    Forget how it looks in the props file. Consider that opaque, a black box.
    Now you use load() to get it back from the properties file. It will be re-created in its original form, so if you print it out on a unix terminal, you'll again see multiple lines. The fact that it's all on one line in the .properties file doesn't affect that.
    Now, if you want it to appear on multiple lines in the props file, then we're back to my previous post--you're breaking the format that load expects.
    At least, that's my understanding of how it works. I might be mistaken, but I think I've tested this very thing in the not-too-distant past.

  • How to convert special characters like #, &, etc occuring in the input string

    Hi,
              I am using method 'Get' to submit a form . When ever there is any
              special character like '#' in my input For example "033#Test", nothing
              gets posted beyond 033.
              Can any one please let me know how do I overcome this problem.
              Thanks in advance.
              Regards,
              Moin
              

    Moinuddin:
              It seems possible your browser may be confused by the fact that 033 is
              the octal representation for an ESCape character (Hex 1B). Try dropping
              the leading zero. In addition, it is usually better to represent special
              characters like the hash mark "#" using HTML character entities instead
              of literals, i.e. &#35; = hash mark
              Regards,
              Jim Brown
              Moinuddin Ahmed wrote:
              >
              > Hi,
              > I am using method 'Get' to submit a form . When ever there is any
              > special character like '#' in my input For example "033#Test", nothing
              > gets posted beyond 033.
              >
              > Can any one please let me know how do I overcome this problem.
              >
              > Thanks in advance.
              > Regards,
              > Moin
              Jim Brown
              Developer Relations Engineer
              BEA Support
              

  • German special characters (Umlaute)

    Hello,
    I just wanted to switch over from Eudora 6.2 to Mail 2.0.7.
    After importing the mails completely and starting with Mail I realized that all mails contaning characters such as "äöü?" been converted to strange characters.
    I couldn't find anything in Mail's settings and so I have switched back to Eudora (as long as this problem is not being solved;-().
    Does anybody have a hint what I have to change or fix?
    Thanks a lot and greetings from Leipzig
    Ralf
    PS.: I'd love to use the special features of Mail but at the moment "No Way:-("

    how did you import the Eudora Mailboxes? Did you use the free application Eudora Mailbox Cleaner for this?
    If not then you definitely might want to give a try. For me and regarding to the comments in VersionTracker it did a perfect job, in converting several thousands of old messages including attachements. In addition it is super fast.
    Best regards
    Rolf

  • Mail for Exchange - special characters (umlaut) in...

    Hi,
    I have several usernames with german umlaut-characters (ü, ä, ö, ß). These usernames are not able to logon within Mail for Exchange. Is there any hint?
    M4E 1.06
    E60 3.0633.09.04

    Do you mean that you can not enter the characters in the username field or that it just doesn't work when you do?
    Which language are you using the phone in? Which language is Mail for Exchange in?

  • How to convert special characters like #, &, etc occuring in the input stri

    Hi,
    I am using method 'Get' to submit a form . When ever there is any
    special character like '#' in my input For example "033#Test", nothing
    gets posted beyond 033.
    Can any one please let me know how do I overcome this problem.
    Thanks in advance.
    Regards,
    Moin

    Before you send the form parameters you need to url-encode them. Like this:String param1="param=033#Test";
    String encodedParam1 = java.net.URLEncoder.encode(param1);Then send the encoded version, which if you examine it you will see looks like "033%25Test".

  • Handling special characters in XML

    Hi,
    I am using Oracle 10g 'XMLType' datatype to store XML files. Before storing I parse the XML document using Java Xerces Parser. If it parses successfuly, then I perform some business rule execution based on XML file which was parsed. So till this stage there is no problems. But when XML file contains some special characters like copy-paste of some description from MS-Word document into XML tags, then Xerces parser will parse such characters with out any exceptions, but while inserting XML document, Oracle database just throws exception saying unable to handle special characters.. So how to avoid such exceptions or silent such exceptions with any specific settings respect to XMLType datatype in 10g DB.
    Please advice!
    Arvind Patil - IN

    Monica--
    In XI 2.0, we've noticed a number of issues processing special characters, primarily caused by the version of JCO that we're running.  It sounds like SAP has spent some time in the past few months focusing on these errors, so make sure you're on the most recent patchlevels of all your middleware components, including any of the middleware libraries that BC uses. In XI, we had to update the 3 files that make up the RFC library and JCO library.  SDM couldn't update the libraries for us -- we had to manually move the files to the right place.
    Escaped XML characters like "&amp;" "&#34;" "&quot;" were fixed as of JCO 2.0.10 (the current patchlevel on AIX/UNIX), the special character "&apos;" is fixed in the next release, JCO 2.0.11, due out in a few weeks (hotfixes are available).  I don't know the equivalent versions on other platforms.  By default, XI 2.0 appears to have shipped with JCO 2.0.5.  I would expect many XI 3.0 users to also be affected.
    This may or may not apply to BC, because I don't know what BC uses to talk to SAP under the covers.
    --Dan King
    Capgemini

Maybe you are looking for

  • HP 6654 upgrade video card/power supply

    I am interested in upgrading my video card from a current ATI Radeon HD 4200 to a "EVGA GeForce GTX 960 SuperSC ACX 2.0+ 2GB GDDR5 128bit, PCI-E 3.0 Dual-Link DVI-I, 3 x DP, HDMI, SLI, HDCP, G-SYNC Ready Graphics Cards 02G-P4-2966-KR".  Will this gra

  • Can I change the arrow direction in the slider

    I am using system slider on the front panel. The default arrow point to the left side. Can I change it to point to right side. Thanks,

  • OBI 11.1.1.6-Restrict visible application roles while sharing customization

    Hi, I am trying to test the security around share customizations functionality accessed through (any)Dashboard -> Page Options -> Save Current Customization -> Save for Others -> Set Permissions -> (+)Add Roles/groups -> Search Application Roles Whil

  • Wireless Controller & Juniper Netscreen Firewall

    I I have a Cisco WLC 4402 plugged into a Cisco Switch 3750 with 10 Access Points connected to this switch. I have a Juniper Netscreen 5XT Firewall, that I wish to place on this wireless network. Does anyone have any experience with setting up a Junip

  • Cannot update ipod because it contains files in use by another application!

    I recently upgraded from a powerbook g4 to an imac 20" C2D. Ever since I put my 5th gen ipod onto it it will give me that error every time i connect it or try to update it. I've tried restoring it and that doesn't fix it. anyone seen this issue or ha