Showing results for 
Search instead for 
Did you mean: 

utf-8 and scp

Michael Murphy_2
Frequent Advisor

utf-8 and scp

Folks - does anyone have experience with sending files with special characters (romanian) across servers using scp/sftp? - I have an application that says they are having issues with the recieved files. Does scp/sftp do a conversion - or can it? I am wondering if they only need to set the transfer to binary to fix.
Steven E. Protter
Exalted Contributor

Re: utf-8 and scp


I have extensive experience doing this with hebrew.

There is no problem. The files will come out at the destination the same as they were at the beginning.

A word doc will open with good characters if the destination PC has support for special characters.

The file will not be changed in any way by transfer.

Steven E Protter
Owner of ISN Corporation
James R. Ferguson
Acclaimed Contributor

Re: utf-8 and scp

Hi Michael:

'scp' and 'sftp' do binary mode transfers only. There is no ASCII ("text") mode as in FTP which is designed to diddle with end-of-line control characters to add or subtract characters for the receiving server's sake.

If you transfer a file and its displayed contents differ, compare the language locale settings on your destination and source servers.


Michael Murphy_2
Frequent Advisor

Re: utf-8 and scp

Thanks for the response - as a follow on - some have proposed the default locale for all of our servers be utf-8 - i there any impact to setting this for all users on a server?

Re: utf-8 and scp

>Is there any impact to setting this for all users on a server?

Which particular locale?
If they have problems they can always reset it back to the previous or the American nerd locale, C.