Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » HTML file from template has always ISO-8859-1 encoding
HTML file from template has always ISO-8859-1 encoding [message #481535] Fri, 21 August 2009 12:52 Go to next message
Eclipse User
Originally posted by: david.balazic.hermes.si.foo

Hi!

I use Eclipse 3.5, about dialog says:
Eclipse IDE for Java Developers

Build id: 20090619-0625
Up to date.

I installed some Java EE development tools and created a new "Dynamic
Web Project". There in the project, if I created a new "HTML Page" or
"JSP" and use a template, then the ${encoding} code in the template is
replaced with "ISO-8859-1", no matter what. I tried to set UTF-8 in the
projects Properties, the in the properties of the folder that contains
the web pages ("WebContent" by default), but it does not make a change.

As the encoding is present three times in the JSP template, changing it
manually each time is tedious.

What am I doing wrong ?

Regards,
David

PS: Other setup info:

Eclipse Java EE Developer Tools
3.1.0.v200905242144-7_7EGr_FQRwRZSME08aqRiT1Skap
org.eclipse.jst.enterprise_ui.feature.feature.group


Eclipse Web Developer Tools
3.1.0.v200905242131-7R77FShEVw2xUGpF1LiNxdVAELXy
org.eclipse.wst.web_ui.feature.feature.group

JST Server Adapters 3.1.0.v20090311c-20-7w311A1422c
org.eclipse.jst.server_adapters.feature.feature.group

JST Server Adapters 3.1.0.v20090311b-777HFDNCcNBBz-BcKW6EGF
org.eclipse.jst.server_adapters.ext.feature.feature.group
Re: HTML file from template has always ISO-8859-1 encoding [message #481795 is a reply to message #481535] Mon, 24 August 2009 11:00 Go to previous messageGo to next message
Jesper Moller is currently offline Jesper Moller
Messages: 9
Registered: July 2009
Junior Member
I don't know why it doesn't respect the project level settings, but for me
it uses the preferences settings: Preferences > Web > JSP Files > Encoding
Re: HTML file from template has always ISO-8859-1 encoding [message #481935 is a reply to message #481795] Mon, 24 August 2009 18:29 Go to previous message
Eclipse User
Originally posted by: david.balazic.hermes.si.foo

Jesper S Møller wrote:
> I don't know why it doesn't respect the project level settings, but for
> me it uses the preferences settings: Preferences > Web > JSP Files >
> Encoding

Yeah.

But there is also Preferences / General / Content Types / Text / HTML
which also has an encoding setting. Pretty confusing.

For the reference: I opened (and closed) bug 287422

Regards,
David

PS: How are the other encoding related bugs ? ;-)


--
My email address has a spamers-confusing addition...
Previous Topic:[Debug] Use of org.eclipse.debug.internal.ui.viewers.*provisional as API
Next Topic:Fragment only works OK when app run from Eclipse
Goto Forum:
  


Current Time: Tue Sep 16 11:29:17 GMT 2014

Powered by FUDForum. Page generated in 0.11036 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software