characterencoding mysql_mysql设定characterEncoding=GBK一段时间之后出现的新问题!

如下所示的log信息:

select count(*) from TalVteamBasicinfo as m where 1=1  and m.teamName like '%车

队%'

Hibernate: select count(*) as col_0_0_ from tal_vteam_basicinfo talvteamba0_ whe

re 1=1 and (talvteamba0_.Team_name like '%????%')

Hibernate: select talvteamba0_.id as id, talvteamba0_.Team_name as Team2_8_, tal

vteamba0_.Team_leader_name as Team3_8_, talvteamba0_.Team_address as Team4_8_, t

alvteamba0_.Team_phone as Team5_8_, talvteamba0_.Remark as Remark8_ from tal_vte

am_basicinfo talvteamba0_ where 1=1 and (talvteamba0_.Team_name like '%????%') l

imit ?

对于之前的log信息,是我在调用session.createQuery(hqlStr);之前对hqlStr打印的结果,之后的信息为hibernate转化出来的查询代码。中文的“车队”被识别为乱麻。请教高手如何解决?

作者: yuxiubin

发布时间: 2007-05-16

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值