Discussions

Performance and scalability: How to store special characters in JDOM ?

  1. How to store special characters in JDOM ? (2 messages)

    Hi,

      I have developed one Application Form it contains <textarea>'s. User is trying to copy the content from msWord.

     Problem is the content contains (Trade Mark)TM symbols etc. Those are converting it into another Symbols when we saved the form.I am storing data in XML files. I tried with UTF-8 and ISO-1-8859.

    Anynody help me in this.

     Thanks in advance,
     LALITH
  2. Try using StringUtils[ Go to top ]

    The Jakarta Commons Lang project has a StringUtils class that knows how to escape/unescape text for different representations incl. XML. Give that a try.

    http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/StringEscapeUtils.html

    /lekkim
  3. Try using StringUtils[ Go to top ]

    The Jakarta Commons Lang project has a StringUtils class that knows how to escape/unescape text for different representations incl. XML. Give that a try.http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/StringEscapeUtils.html/lekkim

      We need to display some Special Characters (http://courses.chem.psu.edu/chem38/technical/special-characters.html) in the Application Form. We are using JDOM for storing the data.

     The Characters are ≥ , ÷ , ± , β , γ , α should be displayed.
     
     '≥' is converted into '¿?¿'. Why it is happening like this.

    Please help me in this regard.

    Thanks in advance,
    LALITH