cannot fix platform line delimiters/encoding issue
I work on AIX/Unix and WindowsXP, with other teammates on XP, AIX, and Mac.
In Windows, when trying to load a project into a newly created repository workspace I get errors about "Unable to convert platform line delimiters" (see below)
I have both of my Jazz 1.0M6a client preferences set to use UTF-8 encoding with Unix line delimiters (though when the files were created, this may not have been the case). In AIX I have tried File->Convert Line delimiters (which has no affect). I have also tried making a small edit and delivering the change in AIX. Yet when I try to pick it up in Windows I get the same error. Do I have to create a new file from scratch or is there something else to try? (There are dozens of files that have developed this condition.)
Error Message when trying to Load Projects into a fresh repository workspace:
Error during download
Failed to download blah.java due to unknown encoding MacRoman. Team should agree on a common encoding
Unable to convert platform line delimiters: MacRoman
In Windows, when trying to load a project into a newly created repository workspace I get errors about "Unable to convert platform line delimiters" (see below)
I have both of my Jazz 1.0M6a client preferences set to use UTF-8 encoding with Unix line delimiters (though when the files were created, this may not have been the case). In AIX I have tried File->Convert Line delimiters (which has no affect). I have also tried making a small edit and delivering the change in AIX. Yet when I try to pick it up in Windows I get the same error. Do I have to create a new file from scratch or is there something else to try? (There are dozens of files that have developed this condition.)
Error Message when trying to Load Projects into a fresh repository workspace:
Error during download
Failed to download blah.java due to unknown encoding MacRoman. Team should agree on a common encoding
Unable to convert platform line delimiters: MacRoman
4 answers
On Thu, 24 Apr 2008 18:17:57 +0000, tierney wrote:
This is a problem with encodings and not line delimeters per say.
Your Java VM does not have the MacRoman encoding. You and your team need
to agree on an encoding you all have (probably ISO-8859-1 or UTF-8) and
set that to all files.
- Dmitry
Error Message when trying to Load Projects into a fresh repository
workspace:
Error during download
Failed to download blah.java due to unknown encoding MacRoman. Team
should agree on a common encoding
Unable to convert platform line delimiters: MacRoman
This is a problem with encodings and not line delimeters per say.
Your Java VM does not have the MacRoman encoding. You and your team need
to agree on an encoding you all have (probably ISO-8859-1 or UTF-8) and
set that to all files.
- Dmitry
Thank you for your help; maybe I'm not understanding correctly.
In AIX where I've got a usable workspace, I tried right clicking on the java file -> Properties->Text file encoding, and forcing it to UTF-8 (rather than what it was: default, "inherited from container: UTF-8").
This updated my org.eclipse.core.resources.prefs in the .settings folder which I delivered.
I went back to WinXP and tried to load again, but those files still showed up. I also tried editing the prefs file directly on WinXP.
Am I missing something?
Thank you,
Tierney McCaughrin
In AIX where I've got a usable workspace, I tried right clicking on the java file -> Properties->Text file encoding, and forcing it to UTF-8 (rather than what it was: default, "inherited from container: UTF-8").
This updated my org.eclipse.core.resources.prefs in the .settings folder which I delivered.
I went back to WinXP and tried to load again, but those files still showed up. I also tried editing the prefs file directly on WinXP.
Am I missing something?
Thank you,
Tierney McCaughrin
You need to commit the files in question to the repository once you've
changed their encoding in the preferences. I suggest you make some
whitespace modification, and commit.
After you do that they will be marked with the correct encoding in the
repository and you will be able to load them on your other system.
- Dmitry
changed their encoding in the preferences. I suggest you make some
whitespace modification, and commit.
After you do that they will be marked with the correct encoding in the
repository and you will be able to load them on your other system.
- Dmitry