mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-08 20:28:25 -05:00
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;
|
||||
try {
|
||||
autodiscoverReader = new BufferedReader(new InputStreamReader(getResponseBodyAsStream()));
|
||||
autodiscoverReader = new BufferedReader(new InputStreamReader(getResponseBodyAsStream(), "UTF-8"));
|
||||
String line;
|
||||
// find ews url
|
||||
//noinspection StatementWithEmptyBody
|
||||
@ -647,7 +647,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
|
||||
mimeMessage.writeTo(baos);
|
||||
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();
|
||||
|
||||
@ -2149,7 +2149,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
GetMethod optionsMethod = new GetMethod("/owa/?ae=Options&t=Regional");
|
||||
try {
|
||||
DavGatewayHttpClientFacade.executeGetMethod(httpClient, optionsMethod, false);
|
||||
optionsPageReader = new BufferedReader(new InputStreamReader(optionsMethod.getResponseBodyAsStream()));
|
||||
optionsPageReader = new BufferedReader(new InputStreamReader(optionsMethod.getResponseBodyAsStream(), "UTF-8"));
|
||||
String line;
|
||||
// find timezone
|
||||
//noinspection StatementWithEmptyBody
|
||||
|
Loading…
Reference in New Issue
Block a user