Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 90244 - WTP editors ignore encoding of workspace or project
Summary: WTP editors ignore encoding of workspace or project
Status: CLOSED WONTFIX
Alias: None
Product: Web Tools
Classification: WebTools
Component: Web Standard Tools (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows 2000
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: wst-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 90241
  Show dependency tree
 
Reported: 2005-04-04 20:47 EDT by chily CLA
Modified: 2006-11-28 15:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chily CLA 2005-04-04 20:47:08 EDT
WTP 1.0M3 (with Web Services), Eclipse 3.1M5, JDK 1.4

I'm not sure if this is the right place to report this bug, but since the 
problem just occures on files used by the WTP editors, it seems to be a WTP 
problem.

The WTP editors ignore the encoding setting of the workspace or the project.
The file's property dialog says for the text file encoding:
"Default (determined from content: ...)" instead of "Default (inherited from 
container: ...)" (as e.g. used by the java editor).

So the workspace's or project's encoding setting has no effect on any file 
managed by the WTP and there is no way to e.g. determine a general text 
encoding for a project.

This behaviour is especcially a big problem in combination with bug# 90241 - 
that all js files get determined as US-ASCII, which garbles their umlauts and 
other special characters.
Comment 1 Amy Wu CLA 2005-04-13 13:42:40 EDT
I think this depends on the content type of the file.  XML, HTML, JSP all have 
ways to specify the encoding in the file, so they should be determined by 
content.  So I don't think "Default (determined from content: ...)" should be 
replaced with "Default (inherited from container: ...)"

Perhaps instead, a bug should be opened on the base to offer both options, so 
you have:
Determine from content
Determine from container
Other

There is a way to change some default encoding behaviour, like encoding to use 
when creating files. These can be found in Preferences=>Web and XML=>xxx 
Files.  

Javascript is a special issue.  Since there is a specific bug opened on that, 
i'll add my comment to bug# 90241.
Comment 2 chily CLA 2005-04-14 07:42:47 EDT
(In reply to comment #1)
I think having the option to generally setting the default encoding to all 
files of a workspace or project is still a good idea - like the suggestion you 
made on that new feature bug (options "Determine from content", "Determine from 
container", "Other").
Comment 3 David Williams CLA 2005-04-14 13:33:56 EDT
I think between the comments here, and in bug 90241, this issue is resolved. 

M6/WTPm4 should allow the kind of control you want over 'javascript', and for
XML and JSPs, there really is supposed to be a standard assumed if not specified
in file (always better to specify in file!)

Let us know if next milestone behaves as expected. 
Comment 4 David Williams CLA 2005-06-15 01:32:05 EDT
Changed Version field given new release numbering.
Comment 5 David Williams CLA 2005-07-25 12:01:56 EDT
Marking as verified as I know this issue is fixed (or correctly categorized).
If, as originator, you disagree or still see, please re-open, or open a new bug. 

Thanks very much for reporting and helping make WTP better. 
Comment 6 Lawrence Mandel CLA 2005-08-18 11:21:47 EDT
Reassinging bug to wst-inbox@eclipse.org.
Comment 7 John Lanuti CLA 2006-11-28 15:40:37 EST
This is part of a mass update to close out all stale WTP defects already verified by the reporter but awaiting closure by the assignee.  If you feel this defect was closed inappropriately, please reopen.

Thanks, John Lanuti