Re: encoding-confusion -> BufferedReader

Andreas Böckler <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
Hi,

it seems that the BufferedReader-Class (which is invoked, if you call 
render(String|URL) is messing up the encoding of the File.

Example:
Container container;
String file = "some.xml";
InputStream in = getClass().getClassLoader().getResourceAsStream(file);
Reader reader = new BufferedReader(new InputStreamReader(in));
container = swix.render(new SAXBuilder().build(file));  // Correct
container = swix.render(new SAXBuilder().build(in));	// Correct
container = swix.render(new SAXBuilder().build(reader)); // Messed Up!

BufferedReader switches to default-Platform-Encoding. That's definitely 
not the way to process XUL-Documents.

Bye
-- 
Andreas Böckler				netlands edv consulting GmbH
mailto:abo at netlands.de

<fortune>
Ein Skelett kommt in die Kneipe: "Ein Bier und einen Wischlappen bitte!"
</fortune>

_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
signature.asc (application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAUnoXq01ptdSpY7oRAgU4AJ43qsntsyhR+LWz+b+NrHgMZLwobACffCgH
q6LBqz9NKKi46K+vVlgrves=
=lZ3R
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.