setString(find(dialog, "unit"), "text", " bytes");
value = Util.bytesToHex(data, 0, data.length, true);
len = data.length;
} else if (enc.equals("cbUtf")) {
setString(find(dialog, "unit"), "text", " UTF-8 characters");
value = f.stringValue();
if (value != null) len = value.length();
} else if (enc.equals("cbDef")) {
setString(find(dialog, "unit"), "text", " characters");
value = new String(data);
len = value.length();