12
返回列表 发新帖
楼主: fenglhua

"\u5176\u4ED6\"这种信息怎么转化出来?

[复制链接]
论坛徽章:
18
生肖徽章:鼠
日期:2006-09-07 17:01:082008新春纪念徽章
日期:2008-02-13 12:43:03生肖徽章:蛇
日期:2007-09-26 17:09:49生肖徽章:猪
日期:2007-09-26 17:09:04生肖徽章:马
日期:2007-09-26 17:03:24生肖徽章:龙
日期:2007-09-26 17:02:43生肖徽章:兔
日期:2007-09-26 17:02:19生肖徽章:羊
日期:2007-09-26 12:35:44生肖徽章:虎
日期:2007-09-18 15:23:56生肖徽章:狗
日期:2007-07-02 11:26:12
11#
发表于 2007-11-30 22:13 | 只看该作者
public class TEST{
  public static void main(String args[]){
    System.out.println("\u5176\u4ED6\u672A\u8BF4\u660E\u539F\u56E0");
  }
}

使用道具 举报

回复
论坛徽章:
2
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442011新春纪念徽章
日期:2011-02-18 11:43:35
12#
 楼主| 发表于 2007-11-30 22:17 | 只看该作者
呵呵,非常感谢!

使用道具 举报

回复
论坛徽章:
7
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:猴
日期:2008-01-02 17:35:53生肖徽章2007版:兔
日期:2008-01-02 17:35:53生肖徽章2007版:虎
日期:2008-01-02 17:35:53生肖徽章2007版:牛
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
13#
发表于 2007-12-1 16:28 | 只看该作者
呃,这个?
UNISTR takes as its argument a string and returns it in the national character set.The national character set of the database can be either AL16UTF16 or UTF8. UNISTR provides support for Unicode string literals by letting you specify the Unicode encoding value of characters in the string. This is useful, for example, for inserting data into NCHAR columns.

The Unicode encoding value has the form '\xxxx' where 'xxxx' is the hexadecimal value of a character in UCS-2 encoding format. To include the backslash in the string itself, precede it with another backslash (\\).

For portability and data preservation, Oracle Corporation recommends that in the UNISTR string argument you specify only ASCII characters and the Unicode encoding values.

使用道具 举报

回复
论坛徽章:
18
生肖徽章:鼠
日期:2006-09-07 17:01:082008新春纪念徽章
日期:2008-02-13 12:43:03生肖徽章:蛇
日期:2007-09-26 17:09:49生肖徽章:猪
日期:2007-09-26 17:09:04生肖徽章:马
日期:2007-09-26 17:03:24生肖徽章:龙
日期:2007-09-26 17:02:43生肖徽章:兔
日期:2007-09-26 17:02:19生肖徽章:羊
日期:2007-09-26 12:35:44生肖徽章:虎
日期:2007-09-18 15:23:56生肖徽章:狗
日期:2007-07-02 11:26:12
14#
发表于 2007-12-1 17:38 | 只看该作者
原帖由 snowy_howe 于 2007-12-1 16:28 发表
呃,这个?
UNISTR takes as its argument a string and returns it in the national character set.The national character set of the database can be either AL16UTF16 or UTF8. UNISTR provides support fo ...

谢谢提醒
SQL> select unistr(replace('\u5176\u4ED6\u672A\u8BF4\u660E\u539F\u56E0','u',''))
str from dual;

STR
--------------
其他未说明原因

使用道具 举报

回复
论坛徽章:
33
红孩儿
日期:2006-04-13 07:34:50ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54玉石琵琶
日期:2012-02-21 15:04:38奥运会纪念徽章:射击
日期:2012-08-10 11:01:09ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07
15#
发表于 2007-12-1 17:54 | 只看该作者
原帖由 ilovemk 于 2007-12-1 17:38 发表

谢谢提醒
SQL> select unistr(replace('\u5176\u4ED6\u672A\u8BF4\u660E\u539F\u56E0','u',''))
str from dual;

STR
--------------
其他未说明原因

windows下可以 unix下却不行 不知道又没有合适的解决方式

使用道具 举报

回复
论坛徽章:
484
ITPUB北京香山2007年会纪念徽章
日期:2007-01-24 14:35:02ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24ITPUB北京2009年会纪念徽章
日期:2009-02-09 11:42:452010新春纪念徽章
日期:2010-03-01 11:04:552010数据库技术大会纪念徽章
日期:2010-05-13 10:04:272010系统架构师大会纪念
日期:2010-09-04 13:35:54ITPUB9周年纪念徽章
日期:2010-10-08 09:28:512011新春纪念徽章
日期:2011-02-18 11:43:32ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54
16#
发表于 2007-12-1 23:19 | 只看该作者
楼上的,windows下oracle 9201可以运行

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表