<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><P style="MARGIN: 0px">I have recently started working with jboss-esb and noticed that some String values got messed up when passed as parameters to methods of a web service. E.g. calling a Method with "ü" as a parameter caused the method to get "ü" instead.</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">I now think that <FONT face="Default Monospace,Courier New,Courier,monospace">jboss-remoting </FONT>might be the cause of the problem.</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">A HTTP request was send with charset=UTF-8. The default charset of the server was windows-1252.</P><P style="MARGIN: 0px">HTTPUnMarshaller seems to ignore the charset of the HTTP request and always use the VM's default charset.</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">I think the incorrect line is:</P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px"><FONT face="Default Monospace,Courier New,Courier,monospace">BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(totalByteArray)));</FONT></P><P style="MARGIN: 0px">&nbsp;</P><P style="MARGIN: 0px">The constructor <FONT face="Default Monospace,Courier New,Courier,monospace">InputStreamReader(InputStream) </FONT>should not be used. Use <FONT face="Default Monospace,Courier New,Courier,monospace">InputStreamReader(InputStream, String) </FONT>instead. The value of the String parameter should be taken from the Content-Type. E.g.:<BR>If <FONT face="Default Monospace,Courier New,Courier,monospace">metadata.get("Content-Type") </FONT>returns <FONT face="Default Monospace,Courier New,Courier,monospace">"text/xml;charset=UTF</FONT><FONT face="Default Monospace,Courier New,Courier,monospace">-8", </FONT>the <FONT face="Default Monospace,Courier New,Courier,monospace">InputStreamReader </FONT>should be constructed with <FONT face="Default Monospace,Courier New,Courier,monospace">"UTF-8" </FONT>as the second parameter.<BR></P></FONT>