---
title: "eclipse 改字符集"
author: "codecook"
date: "2011-06-10T15:23:37Z"
tags: []
categories: ["编程语言"]
slug: "eclipse"
draft: false
lastmod: "2011-06-10T15:23:37Z"
id: 1075450
url: "https://codecook.iteye.com/blog/1075450"
---

1、windows->Preferences...打开"首选项"对话框，左侧导航树，导航到general->Workspace，右 侧Text file encoding，选择Other，改变为UTF-8，以后新建立工程其属性对话框中的Text file encoding即为UTF-8。 
   2、windows->Preferences...打开"首选项"对话框，左侧导航树，导航到general->Content Types，右侧Context Types树，点开Text，选择Java Source File，在下面的Default encoding输入框中输入UTF-8，点Update，则设置Java文件编码为UTF-8。