1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-12 22:18:11 -05:00

EWS: use UTF-8 to decode request on error

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1226 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-20 13:30:39 +00:00
parent 50fe026ee9
commit 866ac09a0b

View File

@ -510,7 +510,11 @@ public abstract class EWSMethod extends PostMethod {
*/
public void checkSuccess() throws EWSException {
if (errorDetail != null) {
throw new EWSException(errorDetail + "\n request: " + new String(generateSoapEnvelope()));
try {
throw new EWSException(errorDetail + "\n request: " + new String(generateSoapEnvelope(), "UTF-8"));
} catch (UnsupportedEncodingException e) {
throw new EWSException(e.getMessage());
}
}
}