Topic "Lost encoding whan savin file"

Author Message
Sharon

Guest


Hi,
Thank you for a great tool!
Version: 4.3.5 build 1463
Running on XP Pro
The scenario is like this:
I connect to remote Linux box (CentOS release 5.6 64Bit) using SFTP port 22
Double click to open text file on the remote box (file open using Notepad++)
Change the file encoding to UTF-8 (In Notepad++ -> Encoding -> UTF-8)
Save the file - > WINSCP copy the file to the remote box in the background.
Close Notepad++
Double click the file again on WINSCP
Notepad opens -> the encoding is not saved

I found out that if i first save the file on my desktop - then change encoding and drag and drop the file into WINSCP using binary file transfer - encoding will stay
So I tried the first steps using the default binary option (the combo on WINSCP toolbar) but it didnt help
Is this a bug or i am missing something?
Thank you very much!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Possible explanation is that WinSCP saves the file to a different temporary folder on every edit. So Notepad++ does not consider it to be the same file.
Though that should not be the case during a single WinSCP run, unless you have checked External editor opens each file in separate window (process) in editor preferences. Can you check please?
http://winscp.net/eng/docs/ui_editor_preferences
Let me know!
_________________
Martin Prikryl
Sharon

Guest


There is a flag on the external editor configuration window
"Force text transfer for external editors"
Once I removed it - the encoding remains.
I think that by default it should be false

Thank you for your help!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your investigation.
This issue has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=842
_________________
Martin Prikryl
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