diff --git a/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/services/dstore/files/DStoreFileService.java b/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/services/dstore/files/DStoreFileService.java index 289736544f7..43ce0fcf512 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/services/dstore/files/DStoreFileService.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/services/dstore/files/DStoreFileService.java @@ -224,7 +224,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer String byteStreamHandlerId = getByteStreamHandlerId(); String remotePath = remoteParent + getSeparator(remoteParent) + remoteFile; - if (!isBinary) + if (!isBinary && hostEncoding != null) { String tempStr = new String(buffer, 0, bytesRead); @@ -393,7 +393,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer String byteStreamHandlerId = getByteStreamHandlerId(); String remotePath = remoteParent + getSeparator(remoteParent) + remoteFile; - if (!isBinary) + if (!isBinary && srcEncoding != null && hostEncoding != null) { String tempStr = new String(buffer, 0, bytesRead, srcEncoding);