|
Re: Subclipse UTF-8 Question [message #499747 is a reply to message #270492] |
Mon, 23 November 2009 22:27 |
Christian Cooper Messages: 1 Registered: November 2009 |
Junior Member |
|
|
Hi Mark, I don't suppose you managed to get a solution to this?
If not, anyone...?
I have the same problem, the default character encoding in Eclipse is UTF-8, I'm working on a Java project, and the files (but not the file names) contain extended characters in French and German words, the usual things are present, accents, circumflexes, cedillas and umlauts.
When I commit the code to the repository, all appears well, but when anyone else does an update, they get '?' instead of accented chars, and if anyone else commits changes and I do an update, I get the same '?' chars in the code.
I'm running on Windows 7, Eclipse 3.5.1, Subclipse 3.0.0, Subversion Client Adapter 1.6.4.1 and JavaHL 1.6.5 (r38866).
As I understand it Subversion should be completely agnostic about the content of the files, so either the commit of the file is causing the content to be damaged prior to transmission, or the file is fine but Eclipse is trying to display it incorrectly when it comes back.
I am inclined to think that the file is being damaged prior to transmission, simply because other tools that support UTF-8 (E.g.: TextPad 5), concur with Eclipse, that the file contains odd characters post update.
Any help would be gratefully received.
Thanks in advance,
Chris.
|
|
|
Re: Subclipse UTF-8 Question [message #520267 is a reply to message #499747] |
Thu, 11 March 2010 18:43 |
Mark Dexter Messages: 324 Registered: July 2009 |
Senior Member |
|
|
The only solution I found was to use TortoiseSVN to apply patches with UTF-8 encoding. That works perfectly.
The same problem has also been encountered by a colleague on Mac OSX.
I don't know what causes it. If it was a windows issue, you would think TortoiseSVN would have the same problem. Weird.
This just in. I got it to work in Eclipse by copying the patch file to the clipboard and using the Clipboard option in the Patch Input Specification dialog. When you preview the patch, all of the UTF-8 characters show as "???", but the patch applies correctly and you can compare in Eclipse after the patch and see the changes correctly. Hope this helps someone.
[Updated on: Thu, 11 March 2010 18:51] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.08667 seconds