Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327319 - Override encoding from resources with encoding from xml file
Summary: Override encoding from resources with encoding from xml file
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 05:55 EDT by Krzysztof Kazmierczyk CLA
Modified: 2010-10-08 06:31 EDT (History)
3 users (show)

See Also:


Attachments
demo.xml (572 bytes, text/xml)
2010-10-08 05:55 EDT, Krzysztof Kazmierczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Kazmierczyk CLA 2010-10-08 05:55:34 EDT
Created attachment 180481 [details]
demo.xml

XML files contains header which specifies file encoding: <?xml version="1.0" encoding="ISO-8859-1"?>

But indeed displaying of this file depends only from resources.

Steps to reproduce:
1. Copy attached file into workspace
2. Set encoding as UTF-8 of that file
3. Open given file in Eclipse. It opens file in UTF-8 instead of in ISO given in header.
Comment 1 Szymon Brandys CLA 2010-10-08 06:23:31 EDT
(In reply to comment #0)
> Steps to reproduce:
> 1. Copy attached file into workspace
> 2. Set encoding as UTF-8 of that file
> 3. Open given file in Eclipse. It opens file in UTF-8 instead of in ISO given
> in header.

If you set the encoding manually, it will override the one automatically computed using a content describer. This is intended behavior.
Comment 2 Szymon Brandys CLA 2010-10-08 06:31:29 EDT
Invalid.