Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Multi encoding problem(A problem working with multi projects with diferent encoding on the same workspace)
Multi encoding problem [message #878248] Mon, 28 May 2012 23:05 Go to next message
Diogo Santana is currently offline Diogo SantanaFriend
Messages: 3
Registered: July 2009
Junior Member
Hello!

This is my scenario:

- Configuration: Indigo SR1, Windows, n projects with no relation between them, one workspace. Workspace encoding configuration: all default (cp1252)

- Project 1: configured to use UTF-8 (I need all resources to be UTF-8)

- Project 2: configured to use ISO-8859-1 (I need all resources to be ISO-8859-1)

- What is going on: the resources on project 2 (ISO-8859-1) that should use ISO-8859-1, like html or xml, is actually using UTF-8 because the XML/HTML files configuration says it should use UTF-8 and ignore the project specific configuration. Even if the file have <?xml version="1.0" encoding="ISO-8859-1"?>.

Anybody knows if that is a new feature in Indigo and I should be doing something diferent or if that is a bug?

Sorry about the poor english.

Thanks,

Diogo Sant'Ana
Re: Multi encoding problem [message #879071 is a reply to message #878248] Wed, 30 May 2012 13:16 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 29.05.2012 01:05, Diogo Santana wrote:
> Hello!
>
> This is my scenario:
> - Configuration: Indigo SR1, Windows, n projects with no relation
> between them, one workspace. Workspace encoding configuration: all
> default (cp1252)
>
> - Project 1: configured to use UTF-8 (I need all resources to be UTF-8)
>
> - Project 2: configured to use ISO-8859-1 (I need all resources to be
> ISO-8859-1)
>
> - What is going on: the resources on project 2 (ISO-8859-1) that
> should use ISO-8859-1, like html or xml, is actually using UTF-8
> because the XML/HTML files configuration says it should use UTF-8 and
> ignore the project specific configuration. Even if the file have <?xml
> version="1.0" encoding="ISO-8859-1"?>.
>
> Anybody knows if that is a new feature in Indigo and I should be doing
> something diferent or if that is a bug?
This works as expected: the content specific encoding wins.
Unfortunately there's https://bugs.eclipse.org/194002 which doesn't
allow to remove that encoding. Your only workaround is to set the
encoding on each file.

Dani
>
> Sorry about the poor english.
>
> Thanks,
>
> Diogo Sant'Ana
Re: Multi encoding problem [message #879165 is a reply to message #879071] Wed, 30 May 2012 16:35 Go to previous messageGo to next message
Diogo Santana is currently offline Diogo SantanaFriend
Messages: 3
Registered: July 2009
Junior Member
Dani,

Thanks for the reply. I was afraid someone would say that.
I guess I will have to work with more then one workspace, one for ISO-8859-1 and another for UTF-8.

But I have one more question: you said "this works as expected", I ask why? Why it gotta be like that? To me makes more sense to use the project configuration.

Thanks again.

Diogo Sant'Ana
Re: Multi encoding problem [message #879627 is a reply to message #879165] Thu, 31 May 2012 14:36 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 30.05.2012 18:35, Diogo Santana wrote:
> Dani,
>
> Thanks for the reply. I was afraid someone would say that.
> I guess I will have to work with more then one workspace, one for
> ISO-8859-1 and another for UTF-8.
>
> But I have one more question: you said "this works as expected", I ask
> why? Why it gotta be like that? To me makes more sense to use the
> project configuration.
Because for those files, the specification explicitly defines the
encoding (e.g. ISO-8859-1 for Java properties files).

Dani
>
> Thanks again.
>
> Diogo Sant'Ana
>
Previous Topic:Eclipse automatical exit without rising any error
Next Topic:java.lang.Enum cannot be resolved.
Goto Forum:
  


Current Time: Tue Mar 19 07:52:31 GMT 2024

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

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

Back to the top