1.把 Java eclipes 设置编码成utf-8 windows->preference->workspace 2.centos7 gcc 默认为utf-8 转载于:https://www.cnblogs.com/libing029/p/10418869.html