java 导入项目 中文乱码_myeclipse导入项目中文乱码的字节问题

try {

//����JDBC_Connection���getConnection����������ݿ�

conn = JDBC_Connection.getConnection();

//�����ݵ�sql���

String sql =

"insert into cars(carnumber,cartype,color,price,rentprice,deposit,isrenting,description) values(?,?,?,?,?,?,?,?)";

pstm = conn.prepareStatement(sql);

pstm.setString(1, carsVo.getCarnumber());

pstm.setString(2, carsVo.getCartype());

pstm.setString(3, carsVo.getColor());

pstm.setDouble(4, carsVo.getPrice());

pstm.setDouble(5, carsVo.getRentprice());

pstm.setDouble(6, carsVo.getDeposit());

pstm.setInt(7, carsVo.getIsrenting());

pstm.setString(8, carsVo.getDescription());

pstm.executeUpdate();//�ύpstm����

System.out.println("��ӳɹ�����ӵ��������£�");

System.out.println();

刚开始使用myeclipse导入项目的时候没有出现这个问题?这是突然出现的问题,不知道是不是我不小心按了什么地方。

我试过网上好心人提供中文乱码解决方法,但是还是没有解决!只能请求各路大神的指点一下小弟。在这里先谢谢了!各位大神

分享至:

90ed4b13fe016cebd9fe3df2ae3a899b.gif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值