public static String mapUnsupportedEncoding(String encoding){
  if (encoding.equalsIgnoreCase("windows-1252")) {
    return "iso-8859-1";
  }
  return encoding;
}

public static String mapUnsupportedEncoding ( String encoding ) { if ( encoding . equalsIgnoreCase ( "windows-1252" ) ) { return "iso-8859-1" ; } return encoding ; }
helper method to map an unsupported xml encoding to a similar encoding . < p / > currently limited to processing windows - 1252 encoding .
