Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
Can you provide a unit test? The degree symbol (\u00b0) is in the standard range of Unicode characters for XML 1.0 and I am not aware of any mappings. With a short modification of an existing unit test I could not reproduce your reported behavior.