Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: UTF-16 files are corrupt on transfer

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
paulprogrammer

UTF-16 files are corrupt on transfer

When transferring files using SFTP protocol from CentOS machine to local (windows 7), the file is corrupted by what appear to be off-by-one errors on odd lines of the file.

What was:
<?xml version='1.0' encoding='UTF-16'?>
<!DOCTYPE dmodule [
<!ENTITY % ISOEntities PUBLIC "ISO 8879-1986//ENTITIES ISO Character Entities 20050501//EN//XML" "isoents.ent">
%ISOEntities;]>

Becomes:

<?xml version='1.0' encoding='UTF-16'?>
਍㰀℀䐀伀䌀吀夀倀䔀 搀洀漀搀甀氀攀 嬀 ഀഀ
<!ENTITY % ISOEntities PUBLIC "ISO 8879-1986//ENTITIES ISO Character Entities 20050501//EN//XML" "isoents.ent">
਍─䤀匀伀䔀渀琀椀琀椀攀猀㬀崀㸀ഀഀ

This is seen on v4.3.4 and v5.0.7.

FileZilla does not have this issue.