Bug 52524 - org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName doesn't escape colon
Summary: org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName doesn't escape colon
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.7-FINAL
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 15:19 UTC by Björn Kautler
Modified: 2012-02-27 15:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Kautler 2012-01-25 15:19:33 UTC
The title says it all

Besides that, it would be nice if you were able to specify the character with which invalid ones get replaced, I would prefer "_" e. g. instead of " ".
Comment 1 Yegor Kozlov 2012-02-27 15:31:24 UTC
Fixed in r1294180 and r1294186

Colon is escaped and there is a 

WorkbookUtil.createSafeSheetName(final String nameProposal, char replaceChar)

method that allows you to control replacement of invalid characters.

Yegor