Topic: 用POI把ORACLE9i中的中文数据写入EXCEL时出现乱码 |
Print this page |
1.用POI把ORACLE9i中的中文数据写入EXCEL时出现乱码 | Copy to clipboard |
Posted by: shawnma Posted on: 2003-04-28 20:36 当我利用POI把ORACLE9i中的中文数据写入EXCE时出现乱码,请问如何解决 |
2.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: shawnma Posted on: 2003-04-29 08:57 Post is deleted |
3.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: why Posted on: 2003-04-29 10:04 才不過半天就頂?是不是太性急呢? 有人答話題沉到最底也會有人答,無人答就算頂到天高仍是無人答的啦! |
4.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: shawnma Posted on: 2003-04-29 10:32 没办法,催得紧,不过幸好解决了,方法为: 在 类HSSFCell中有一个方法是setEncoding(short)将参数设为1,就可以将中文写入EXCEL中,并能被EXCEL识别。 |
5.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: why Posted on: 2003-04-29 11:56 應該是 setEncoding(HSSFCell.ENCODING_UTF_16) 如果把 Subject 寫得清楚一些,可能會更有效率啦! 直接寫“用POI把ORACLE9i中的中文数据写入EXCEL时出现乱码”也可以 |
6.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: shawnma Posted on: 2003-04-29 18:12 好的下次一定注意。 |
7.Re:乱码 [Re: shawnma] | Copy to clipboard |
Posted by: jametong Posted on: 2003-05-09 21:57 其实可以直接在操作系统级设置语言选项解决,在linux下可以通过设置 /etc/sysconfig/i18n:SUPPORTED="en_US.UTF-8:en_US:en" |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |