Hi,
I believe the second code suggesting is better. We also do mixed Windows / Unix 
/ Linux development and use UTF-8 encoded files. Java on Windows does not 
default to UTF-8 but some Windows specific code page so we always have to 
explicitly specify the encoding of our files and byte streams so that we get 
identical behavior across platforms.

return new ByteArrayInputStream(
  |     new String(buffer.toString().getBytes(),"UTF-8");
Thanks,
Jeff

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082636#4082636

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082636
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to