Topic "WinSCP 5 seems to change encoding, breaking umlauts"

Author Message
So many Pandas



I updated my WinSCP from version 4 (I do not know the exact version, I didn't update everytime)
to version 5.1.2 (Build 2816).

The new version seems to break encoding of my files.

Copy/pasting over SMB or a remote desktop works fine, the server sends the file correct and umlauts display fine.
But uploading by FTP with WinSCP 5.1.2 the umlauts vanish and the file is 3 byte smaller than the original.

The files have been created with visual studio 2012.
Notepad2 says the original file is "UTF8 with signature"
After upload it only says "UTF8"

This did NOT happen with version 4.

I attached a screenshot, the original file and after uploading it.
text-webbrowser.png (1.5 KB)

Description: Broken umlauts


TextFile1-after.txt (57 Bytes) [Download]

Description: textfile after upload with winscp 5.1.2

TextFile1-before.txt (60 Bytes) [Download]

Description: original text file, created with visual studio 2012

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
WinSCP strips UTF-8 byte-order-mask on upload during ascii/text mode transfers since version 4.1.
Though for FTP only since 5.0.8

You can prevent stripping by using binary transfer mode.

Option to disable stripping is tracked here:

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License