HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
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.
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: utf-8 and scp

Shalom,

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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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.

Regards!

...JRF...
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.