Index: src/java/org/apache/poi/hssf/model/Workbook.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/model/Workbook.java,v retrieving revision 1.10 diff -r1.10 Workbook.java 408a409 > 418c419,424 < public void setSheetName(int sheetnum, String sheetname) { --- > // for compartibility > public void setSheetName(int sheetnum, String sheetname ) { > setSheetName( sheetnum, sheetname, (byte)0 ); > } > > public void setSheetName(int sheetnum, String sheetname, short encoding ) { 420,423c426,430 < (( BoundSheetRecord ) boundsheets.get(sheetnum)) < .setSheetname(sheetname); < (( BoundSheetRecord ) boundsheets.get(sheetnum)) < .setSheetnameLength(( byte ) sheetname.length()); --- > > BoundSheetRecord sheet = (BoundSheetRecord)boundsheets.get( sheetnum ); > sheet.setSheetname(sheetname); > sheet.setSheetnameLength( (byte)sheetname.length() ); > sheet.setCompressedUnicodeFlag( (byte)encoding );