You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/07/18 04:26:40 UTC
DO NOT REPLY [Bug 21700] New: -
org.apache.xml.serialze.Encodings.getEncodingInfo() fails to lookup UnicodeLittle
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21700>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21700
org.apache.xml.serialze.Encodings.getEncodingInfo() fails to lookup UnicodeLittle
Summary: org.apache.xml.serialze.Encodings.getEncodingInfo()
fails to lookup UnicodeLittle
Product: Xerces2-J
Version: 2.4.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Serialization
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: dave@cloudsofheaven.org
When output serializing an XML document with the XMLSerializer, it internally
looks up the encoding by calling
org.apache.xml.serialize.Encodings.getEncodingInfo(), passing in the encoding
as "UnicodeLittle". The following code seems to be wrong:
// need to convert it to upper case:
encoding = encoding.toUpperCase();
String jName = EncodingMap.getIANA2JavaMapping(encoding);
Inside the encoding map, most of the encodings are specified in upper case,
but not UnicodeLittle, UnicodeBig (and a few others). This means that they
cannot be found when a lookup is done in this manner.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org