---
title: "eclipse下properties文件中文乱码的解决方案"
author: "xdwangiflytek"
date: "2014-10-29T14:51:09Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-properties"
draft: false
lastmod: "2014-10-29T14:51:09Z"
id: 2149264
url: "https://xdwangiflytek.iteye.com/blog/2149264"
---

现象：\\u8fd9\\u662f\\u4e00\\u4e2a\\u4f8b\\u5b50

   原因：在中文操作系统下，Eclipse对Properties资源文件的编码的默认设置是ISO-8859-1，所以编辑Properties资源文件中的中文会出现问题；

   解决方案：修改Eclipse中Properties资源文件的编码的默认设置为UTF-8

 ![](http://dl2.iteye.com/upload/attachment/0102/6021/c5cf4b6f-b121-3438-8eaa-04f67ced4f1b.png)