Redian新闻
>
[转载] Re: unicode into oracle?
avatar
[转载] Re: unicode into oracle?# Database - 数据库
b*e
1
【 以下文字转载自 Java 讨论区 】
【 原文由 breeze 所发表 】
still doesn't work :( i don't think what's in oracle is right to
begin with.. i ran select * from table and it didn't show up right
(if i inserted chinese manually using sql and then run it it shows
up fine)
actually the result stored in the DB after i ran my program is
(using select dump (name, 1016) from x_test;)
Typ=1 Len=6 CharacterSet=UTF8: ef,bf,bd,4b,c3,95
the string i isnerted is: str = "\u6587\u6d4b\u8bd5";
avatar
g*y
2
it looks to me that the string did not make the transcoding trip,it is not the
problem of Oracle I guess since you can input it directly into Oracle

oracle.jdbc.driver.OracleDriver());
dbUserId, dbPassword);
('2343', ?, 'CHINESE')";
BufferedReader(rs2.getCharacterStream("name"));
as

【在 b****e 的大作中提到】
: 【 以下文字转载自 Java 讨论区 】
: 【 原文由 breeze 所发表 】
: still doesn't work :( i don't think what's in oracle is right to
: begin with.. i ran select * from table and it didn't show up right
: (if i inserted chinese manually using sql and then run it it shows
: up fine)
: actually the result stored in the DB after i ran my program is
: (using select dump (name, 1016) from x_test;)
: Typ=1 Len=6 CharacterSet=UTF8: ef,bf,bd,4b,c3,95
: the string i isnerted is: str = "\u6587\u6d4b\u8bd5";

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。