diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-10-08 15:49:00 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-10-08 15:49:00 +0000 |
commit | 8d286ec651c5252192c3634f9e34f91d929ef721 (patch) | |
tree | b3498026e78c0d272785647d5eb642821377717b /src/main | |
parent | 59d1febed642847d457c425b6fdf921cb3fe3c53 (diff) | |
download | pdf-as-3-8d286ec651c5252192c3634f9e34f91d929ef721.tar.gz pdf-as-3-8d286ec651c5252192c3634f9e34f91d929ef721.tar.bz2 pdf-as-3-8d286ec651c5252192c3634f9e34f91d929ef721.zip |
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
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java | 5 |
1 files changed, 3 insertions, 2 deletions
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$
}
|