Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327319

Summary: Override encoding from resources with encoding from xml file
Product: [Eclipse Project] Platform Reporter: Krzysztof Kazmierczyk <kazm>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: kazm, sptaszkiewicz, Szymon.Brandys
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
demo.xml none

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.