XStream
  1. XStream
  2. XSTR-19

Handling of XML in other character encodings

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.5
    • Component/s: IO
    • Labels:
      None

      Description

      Attached is a simple test program to see how the marshalling and unmarshalling with a String with umlauts worked. Unfortunately it fails since the call to xml.getBytes() in DOMXMLReaderDriver will return a sequence of bytes using the platform's default charset. Using a call like xml.getBytes("UTF-8") does work, but it would be great to have the ability to specify the encoding dynamically so that marshalling and unmarshalling the XML can be done using the proper character encoding.

      1. BlogEntry.java
        0.8 kB
        David Czarnecki
      2. XStreamTest.java
        0.7 kB
        David Czarnecki

        People

        • Assignee:
          Joe Walnes
          Reporter:
          David Czarnecki
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: