Re: Re: encoding-confusion -> BufferedReader
kate rhodes <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
nice catch Andreas. -Kate Andreas Böckler wrote: > 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 > >------------------------------------------------------------------------ > >_______________________________________________ >Forum mailing list >[email protected] >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > >