result.addLogInfo("Attempting conversiones..\n");
for ( String charsetName : charsets ) {
try {
String outputStr = _asString(bytes, charsetName);
result.addLogInfo("Conversion from " +charsetName+ ": OK.\n");
result.setContents(outputStr);
return result;
}
catch(CharacterCodingException ex) {
// continue with the other possible charsets...