XStream
  1. XStream
  2. XSTR-698

Degree char (\u00B0) is being written to XML with an angstrom char preceding it.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • JDK version and platform:
      JDK 1.7.0_02

      Description

      Xstream has been an excellent framework to use and I've been very impressed with it. I do have one small issue with the degree character when it's marshalled to xml though.

      I am using Xstream to write our AddChecksheetForm object to Xml. There a several String fields which contain the degree character (\u00B0). When the AddChecksheetForm is marshalled, the resulting xml contains the degree symbol but it's preceded by an angstrom symbol (\u212B).

      I have written a custom converter (AddChecksheetFormConverter) but the code to write out these strings is pretty simple. Here's an example:

      writer.startNode("tempRangeMin");
      writer.setValue(checksheetForm.getTempRangeMin());
      writer.endNode();

      How do I fix this issue? Or is this a bug?

      Thanks
      Roger

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Roger Lau
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: