51Testing软件测试论坛

标题: navicat for mysql 在eclipse console中文显示乱码 [打印本页]

作者: shouyancui    时间: 2013-4-18 10:06
标题: navicat for mysql 在eclipse console中文显示乱码
query = db.query("SELECT * from yqpt_event_info_today")
  
  puts "there are #{query.num_rows} rows returned"
  
  query.each_hash do |h|
    puts h.inspect
  end

eclipse的 console中文显示乱码。

我查看了一下我的eclipse中编码为GBK
navicat for mysql中编码为UTF8
我就把eclipse编码改为UTF8,还是乱码。连project中中文都是乱码了

这个问题应该如何解决呢




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2