Update of /var/cvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/dataaccess In directory james.mmbase.org:/tmp/cvs-serv29182
Modified Files: DataAccessor.java Log Message: CMSC-1166, KNMI migration to the CMS Container,deal with encoding is bank See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/dataaccess See also: http://www.mmbase.org/jira/browse/CMSC-1166 Index: DataAccessor.java =================================================================== RCS file: /var/cvs/contributions/CMSContainer_Modules/dataconversion/src/java/com/finalist/cmsc/dataconversion/dataaccess/DataAccessor.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- DataAccessor.java 18 Dec 2008 07:11:44 -0000 1.9 +++ DataAccessor.java 19 Dec 2008 00:58:55 -0000 1.10 @@ -192,7 +192,7 @@ private Object encoding(ResultSet rs, String fieldName) throws SQLException { Object obj=rs.getObject(fieldName); - if (obj instanceof String&&StringUtils.isBlank(encoding)) { + if (obj instanceof String&&StringUtils.isNotBlank(encoding)) { try { String untrimmedResult = new String(((String) obj).getBytes(encoding), "utf-8"); return untrimmedResult; _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs