WinSCP 5 seems to change encoding, breaking umlauts


So many Pandas

WinSCP 5 seems to change encoding, breaking umlauts


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.

Description: Broken umlauts


Description: textfile after upload with winscp 5.1.2
Description: original text file, created with visual studio 2012

Reply with quote


Site Admin
martin avatar
Prague, Czechia

Re: WinSCP 5 seems to change encoding, breaking umlauts

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:

Reply with quote


You can post new topics in this forum