Sample XSSFont.getCharSet: public byte getCharSet() { CTIntProperty charset = _ctFont.sizeOfCharsetArray() == 0 ? null : _ctFont.getCharsetArray(0); int val = charset == null ? FontCharset.ANSI.getValue() : FontCharset.valueOf(charset.getVal()).getValue(); return (byte)val; } //When val great 127,then (byte)val is negative! //So return type is should change to int
Any chance you could upload a file with a character set outside the 0-127 range? That can then be used as part of a unit test for the change.
(In reply to comment #1) > Any chance you could upload a file with a character set outside the 0-127 > range? That can then be used as part of a unit test for the change. ok,I upload a xlsx file.When character set is GB2312(character set value is 134),Scene is occur!
Created attachment 25434 [details] It is have GB2312 charact set
Thanks for the sample file. Fix and unit test added in r948089.