Revision 5749
Added by ben leinfelder about 14 years ago
test/edu/ucsb/nceas/metacattest/ReaderWriterTest.java | ||
---|---|---|
218 | 218 |
try |
219 | 219 |
{ |
220 | 220 |
System.out.println("default charset:" + Charset.defaultCharset().displayName()); |
221 |
String sampleXML = "<?xml version='1.0' encoding='UTF-8'><test>my content 你</test>"; |
|
221 |
String sampleXML = "<?xml version='1.0' encoding='UTF-8'?><test>my content 你</test>";
|
|
222 | 222 |
// get bytes using different encoding - shouldn't matter what we use for the prolog |
223 | 223 |
XmlStreamReader xsr = |
224 | 224 |
new XmlStreamReader( |
Also available in: Unified diff
correct the prolog