1.解决eclipse window下 .java .cpp文件到mac下乱码 (1)先在window下把项目导成utf-8编码 (2) mac eclipse编辑器把 .java或.cpp等文件转换成utf-8 (3)项目转换成utf-8,右键项目-->Properties 转载于:https://blog.51cto.com/4447695/1252918