EWS: expect UTF-8 in options responses
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2267 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
92e6db6da3
commit
254abf1b9f
|
@ -354,7 +354,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
)) {
|
)) {
|
||||||
BufferedReader autodiscoverReader = null;
|
BufferedReader autodiscoverReader = null;
|
||||||
try {
|
try {
|
||||||
autodiscoverReader = new BufferedReader(new InputStreamReader(getResponseBodyAsStream()));
|
autodiscoverReader = new BufferedReader(new InputStreamReader(getResponseBodyAsStream(), "UTF-8"));
|
||||||
String line;
|
String line;
|
||||||
// find ews url
|
// find ews url
|
||||||
//noinspection StatementWithEmptyBody
|
//noinspection StatementWithEmptyBody
|
||||||
|
@ -647,7 +647,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
|
|
||||||
mimeMessage.writeTo(baos);
|
mimeMessage.writeTo(baos);
|
||||||
if (LOGGER.isDebugEnabled()) {
|
if (LOGGER.isDebugEnabled()) {
|
||||||
LOGGER.debug("Rebuilt message content: " + new String(baos.toByteArray()));
|
LOGGER.debug("Rebuilt message content: " + new String(baos.toByteArray(), "UTF-8"));
|
||||||
}
|
}
|
||||||
mimeContent = baos.toByteArray();
|
mimeContent = baos.toByteArray();
|
||||||
|
|
||||||
|
@ -2149,7 +2149,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
GetMethod optionsMethod = new GetMethod("/owa/?ae=Options&t=Regional");
|
GetMethod optionsMethod = new GetMethod("/owa/?ae=Options&t=Regional");
|
||||||
try {
|
try {
|
||||||
DavGatewayHttpClientFacade.executeGetMethod(httpClient, optionsMethod, false);
|
DavGatewayHttpClientFacade.executeGetMethod(httpClient, optionsMethod, false);
|
||||||
optionsPageReader = new BufferedReader(new InputStreamReader(optionsMethod.getResponseBodyAsStream()));
|
optionsPageReader = new BufferedReader(new InputStreamReader(optionsMethod.getResponseBodyAsStream(), "UTF-8"));
|
||||||
String line;
|
String line;
|
||||||
// find timezone
|
// find timezone
|
||||||
//noinspection StatementWithEmptyBody
|
//noinspection StatementWithEmptyBody
|
||||||
|
|
Loading…
Reference in New Issue