Bug 18404

Summary: [RFE]Add encording mode ENCODING_AUTOMATIC to HSSFCell and set as default mode
Product: POI Reporter: Toshiaki Kamoshida <kamoshida.toshiaki>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P3    
Version: 2.0-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Toshiaki Kamoshida 2003-03-27 10:18:34 UTC
Hello,

When someone,using DBCS as natural language,uses HSSF library,now he must call 
HSSFCell#setEncording(HSSFCell#ENCODING_UTF_16) at each cell objects.

But it is not convenience.In japan,sometime I saw a new-user couldn't find this 
method,and made cell contains broken caracters, and evaluate POI as "useless". 
XP

When serialize a cell's value,it is easy to check the value has double bytes 
character or not,I feel.
So I suggest, add encording mode ENCODING_AUTOMATIC to HSSFCell, and if seleted 
mode is this,chek characters automatically and decide to seialize as 
ENCODING_COMPRESSED_UNICODE or ENCODING_UTF_16 in POI library.
And I hope,you make default encoding mode to ENCODING_AUTOMATIC.
Comment 1 Jason Height 2006-07-26 10:20:38 UTC
Latest code in SVN will use string chars to determine encoding type. Which does
what you describe.

Of course i am not a unicode expert, so if this latest code doesnt work then
please raise a bug with an appropriate testcase.

Jason