Bug #2517
Charset bug: > "less than" symbol does not display correctly
0%
Description
The < "less than" symbol does not display correctly. It displays as < in the data repository. When using Morpho it looks correct but than when viewing the data package Online the < is displayed instead. I think this is a problem with the > symbol too.
I've been typing in the text "less than" and "greater than" for a workaround but it would be good to get this solved.
History
#1 Updated by Matt Jones about 13 years ago
Inigo San Gil also reports a related issue:
My valid EML file
(http://www.cedarcreek.umn.edu/data/emlFiles/pl00e001.xml) has the
following line (content):
|Field|Plot|Ntrt|NitrAdd|Date|Taxon|Species |Biomass |Prop <== Labels
However, once harvested, the metacat link to the document
(
http://metacat.lternet.edu/knb/metacat?action=read&qformat=xml&docid=knb-lter-cdr.7901001.2
)
has that same line slightly changed to: |Field|Plot|Ntrt|NitrAdd|Date|Taxon|Species |Biomass |Prop <== Labels
Note: the original entity character "<" has been translated to its
corresponding literal char, "<".
Needles to say, the resulting XML is not well formed.
Any way to correct this easily?
#2 Updated by Jing Tao over 11 years ago
This bug has been fixed (base on callie's testing). Here are somethings i did:
1)Use ServletOutputSteam to replace PrintWriter to send response of read and query actions. So Java wouldn't encode the special characters.
2)Fix a bug in normalize method in MetacatUtil class - it will encode special characters.
3)Fix a similar bug in normalize subroute in register-dataset.cgi.
#3 Updated by Jing Tao over 11 years ago
see above comment for fixing.
#4 Updated by Jing Tao over 11 years ago
Change milestone to 1.8.1
#5 Updated by Redmine Admin over 6 years ago
Original Bugzilla ID was 2517