Community
Participate
Working Groups
In the method SystemEditableRemoteFile.upload() UTF-8 is used as workstation encoding. It should use the encoding of the workspace.
Please review the references to SystemEncodingUtil.ENCODING_UTF_8.
Created attachment 127707 [details] patch to use workspace encoding rather than hardcoded UTF-8 as src encoding I added a static method to RemoteFileUtility to get the source encoding from an IFile (i.e. does the extra work of falling back to the default workbench encoding). I've replaced UTF-8 with this src encoding for most upload and download calls. There are a few that I didn't change due to what appears to be dead code and for archive-handling cases.
Hi Dave, Can this fix be ported back to 3.0.x? Thanks.
(In reply to comment #3) > Hi Dave, > Can this fix be ported back to 3.0.x? Thanks. > Hi Samuel, We don't have a planned 3.0.4 release. If this is something your team needs this then we'll have to discuss this.
I've committed the change for 3.1.
Bug 268218 is created for the backport.
This fix added new API in org.eclipse.rse.subsystems.files.core.model RemoteFileUtility#getSourceEncoding(IFile)