Hi,
NOTE: I am not on the version that was released in July 2020, but rather the version before the current one.
I had a user upload a file that had a unicode dash or apostrophe in it and when the
TScSFTPServer.DefaultOpenFile created the file it would garble it like this:
here is an example filename with the unicode apostrophe:
TCS-CDEC.Invesco’s STIT Purchase Request.pdf
aHandle := CreateFile(PChar(FullFileName),dwDesiredAccess, dwShareMode, nil, dwCreationDisposition, dwFlagsAndAttributes, 0)
with this line the file is garbled when it’s saved to disk.
Changing FullFilename to widestring and createfile to createfileW like so:
aHandle := CreateFileW(PWideChar(FullFileName),dwDesiredAccess, dwShareMode, nil, dwCreationDisposition, dwFlagsAndAttributes, 0)
Unicode issue with uploding a file to Sbridge SFTP Server
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: Unicode issue with uploding a file to Sbridge SFTP Server
Anyone at devart take a look at this yet?
I put the fix I came up with and it has been working fine.
I put the fix I came up with and it has been working fine.
Re: Unicode issue with uploding a file to Sbridge SFTP Server
Sorry for the delay on this.
Thank you for interest to our product and contributing to our product development.
We have answered you via e-mail.
Thank you for interest to our product and contributing to our product development.
We have answered you via e-mail.