From 8d286ec651c5252192c3634f9e34f91d929ef721 Mon Sep 17 00:00:00 2001 From: tknall Date: Mon, 8 Oct 2007 15:49:00 +0000 Subject: minor bug concerning warning of invalid charset fixed git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@222 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java index f9051c5..d0448cb 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java @@ -238,8 +238,9 @@ public final class MOASoapConnection response_properties.setProperty(BKUPostConnection.RESPONSE_STRING_KEY, server_header.getValue()); - log.debug(post_method.getResponseCharSet()); - if (!post_method.getResponseCharSet().equals("UTF-8")) //$NON-NLS-1$ + String charset = post_method.getResponseCharSet(); + log.debug("MOA response charset is \"" + charset + "\""); + if (!"UTF-8".equalsIgnoreCase(charset) && !"UTF8".equalsIgnoreCase(charset)) //$NON-NLS-1$ { log.warn("MOA response charset is not UTF-8!"); //$NON-NLS-1$ } -- cgit v1.2.3