Skip to content

Instantly share code, notes, and snippets.

@stormcat24
Created May 1, 2012 10:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormcat24/2566998 to your computer and use it in GitHub Desktop.
Save stormcat24/2566998 to your computer and use it in GitHub Desktop.
eclipseのHTMLファイルで文字コード宣言をしないとShift-JISになってしまう問題の解決方法
plugins/org.eclipse.wst.html.core_1.1.502.v201202091936.jar のplugin.xmlファイルを修正する。
org.eclipse.core.contenttype.contentTypes部分を以下のように修正。le-extensionsからhtml, htmとかを除外する。
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
file-extensions="htpl,wml"
priority="high"
name="%HTML_Content_Type_Extension_Element.name"
id="org.eclipse.wst.html.core.htmlsource"
base-type="org.eclipse.core.runtime.text">
<!-- note: no default-charset for HTML, should use 'platform' -->
<describer
class="org.eclipse.wst.html.core.internal.contenttype.ContentDescriberForHTML" />
</content-type>
</extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment