English 中文(简体)
武力lip倒了,无视性格的特性。
原标题:force eclipse to ignore character encoding attribute

I m 在其html模板中采用动态特性编码的网络框架,如:

<meta charset="${_response_encoding}">

问题在于,我试图在Eclipse上篡改这一档案,Eclipse认为这是一个字面上加固的类型,因此拒绝打开档案,说:

"Unsupported Character Encoding" Character encoding "${_response_encoding}" is not supported by this platform.

是否有办法告诉Eclipse,以停止试图成为“聪明”(因为它明显是 t)而只是向我表明案文? 我用“......文本主编”进行审判,但结果仍然相同。

问题回答

更改超文本文档的内容类型:

选择视窗->偏好——和;一般——> 内容类型和变化编码(将其编为utf-8),以便所有必要的档案延期。

Choose "Other" and then select UTF-8. Then your template will render as normal.

我也存在同样的问题,但我是在试图在改变特征编码之后挽救该文件时收到错误信息。 我通过在Eclipse中做以下工作来解决这个问题,然后将非标准charset列入。 价值:

  • Rename the file to have a non-HTML file extension.
  • Open the file using an editor other than the HTML one.
  • Change the charset value to the non-standard value you want.
  • Rename the file to have the original extension.
  • Open the file.
  • Follow the buttons and prompts to set the character encoding to the real encoding of the file.

之后,该档案仍可使用,同时仍然具有非标准<代码>charset价值。

如果你把Eclipse作为超文本处理,那是聪明的。 The s not a valid encoding name. 你们是否试图仅仅指责整个 met子?

(如评论中提到的) 在Eclipse Indigo,在打开档案时,你看到了与《一套编码编码编码背书》相加的不支持的特性。 利用该纽州确定UTF-8编码。 Eclipse并不改变超文本文档中的变量。

诚然,这是在逐个档案的基础上进行的,但在我的项目中,我进口了每座屏幕的同一张 met子。 实际上,我只有两个档案可以立案(这些档案已经存档,没有存档)。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签