---
title: "eclipse中js不能保存的问题"
author: "tcl1122"
date: "2011-02-16T16:38:33Z"
tags: []
categories: ["Web前端"]
slug: "eclipse-js"
draft: false
lastmod: "2011-02-16T16:41:43Z"
id: 907993
url: "https://tcl1122.iteye.com/blog/907993"
---

最近又遇到一个小麻烦，为了防止自己不忘记，写一下，
eclipse中编写的js文件保存时报了一个什么不能保存。

将文件保存成utf-8格式之后再拖进去还是不行，最后
Window -->Preferences --> General --> Content Type -->Text
-->Javascript 

选择这个javascript后最下面的Dfault encoding 修改成UTF-8 
就行了。