eclipse 的控制台必须用gbk编码。所以条件1和条件4必须同时满足否则运行的还是乱码。才能保证不是乱码。 条件1,window | preferences | workspace | text fileencoding | ...