ASF Bugzilla – Attachment 33004 Details for
Bug 58247
Some UTF-16 characters are not handled correctly (likely surrogate pair related)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Reproduce source code
58247_souce_code.txt (text/plain), 1.43 KB, created by
raveufo
on 2015-08-17 01:13:10 UTC
(
hide
)
Description:
Reproduce source code
Filename:
MIME Type:
Creator:
raveufo
Created:
2015-08-17 01:13:10 UTC
Size:
1.43 KB
patch
obsolete
> try { > InputStream template = new FileInputStream( > "D:/apache-poi-example/template/58247_sample_input.xlsx"); > try { > XSSFWorkbook book = (XSSFWorkbook)WorkbookFactory.create(template); > > try { > OutputStream output = new FileOutputStream("D:/apache-poi-example/output/58247_sample_output.xlsx"); > try { > book.write(output); > } catch (IOException e) { > System.out.println("[WARN] Error during output xls."); > } finally { > output.close(); > } > } catch (FileNotFoundException e) { > System.out.println("[ERROR] Cannot open output file."); > } > } catch (InvalidFormatException e) { > System.out.println("[ERROR] Template is not excel file."); > } catch (IOException e) { > System.out.println("[ERROR] Cannot create workbook factory."); > } finally { > try { > template.close(); > } catch (IOException e) { > System.out.println("[WARN] Error during closing template."); > } > } > } catch (FileNotFoundException e) { > System.out.println("[ERROR] template file is not found."); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 58247
:
33002
|
33003
| 33004