protected static String normalizeEncoding ( String enc ) { if ( enc . equals ( "winansi" ) || enc . equals ( "" ) ) return CP1252 ; else if ( enc . equals ( "macroman" ) ) return MACROMAN ; else return enc ; }
Normalize the encoding names . winansi is changed to Cp1252 and macroman is changed to MacRoman .