Topic "Strip UTF8 byte-order-mask on FTP upload (regression)"

Author Message
gpetrioli
[View user's profile]

Joined: 2013-04-18
Posts: 2
Location: Athens, Greece
I believe that there is a re-introduction (or regression) of a previously reported bug.

The initial bug is (bug#888): http://winscp.net/tracker/show_bug.cgi?id=888 and it is stated that it was fixed for v5.0.8

The version i use is 5.1.4 (build 3020) on Windows 7 Ultimate 64Bit

Not sure if it is an edge case, so i will post some more info

The files i upload have .vbhtml extension (these are asp.net mvc 3 razor view files) and contain html and asp.net razor code (text)

These files lose their BOM (Byte-Order-Mark) char(s) at the beginning of the file. (this causes the browsers to misinterpret their contents)

If i rename the files to .bin and upload them they get transferred fine (obviously as binary) so i understand that the problem occurs with text files.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
The bug actually says that the stripping was introduced in 5.0.8.
Request for option to make this configurable is tracked here:
http://winscp.net/tracker/show_bug.cgi?id=842
_________________
Martin Prikryl
gpetrioli
[View user's profile]

Joined: 2013-04-18
Posts: 2
Location: Athens, Greece
Ah, ok.

I thought the summary was the bug and not a request (should have paid more attention to the severity)

Thanks for the heads up.

(add one more vote for the implementation of that feature.. )
Linda Kaioh
[View user's profile]

Joined: 2012-05-09
Posts: 18
Hi! I'm using WinSCP beta 5.2.3 build 3436.

When I edit files with internal editor they lose BOM on save (and upload). It's because internal editor use only text mode (I prefer binary for everything).

Can you fix it? ^^'
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Linda Kaioh wrote:
Hi! I'm using WinSCP beta 5.2.3 build 3436.

When I edit files with internal editor they lose BOM on save (and upload). It's because internal editor use only text mode (I prefer binary for everything).

Can you fix it? ^^'

The Bug 842 is implemented. But if you want to "fix" internal editor to support binary mode, it's unlikely. Use your favorite external editor for this.
Linda Kaioh
[View user's profile]

Joined: 2012-05-09
Posts: 18
prikryl wrote:
The Bug 842 is implemented. But if you want to "fix" internal editor to support binary mode, it's unlikely. Use your favorite external editor for this.


Err... Can internal editor (or text mode transfer) preserve BOM?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Linda Kaioh wrote:
Err... Can internal editor (or text mode transfer) preserve BOM?

Internal editor always adds BOM, when using UTF-8 encoding.
For text mode transfer: That's what bug 842 is about:
http://winscp.net/tracker/show_bug.cgi?id=842
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License