if (Constants.MARC_8_ENCODING.equals(convert))
charconv = new AnselToUnicode();
else if (Constants.ISO5426_ENCODING.equals(convert))
charconv = new Iso5426ToUnicode();
else if (Constants.ISO6937_ENCODING.equals(convert))
charconv = new Iso6937ToUnicode();
else {
System.err.println("Unknown character set");
System.exit(1);
}
writer.setConverter(charconv);