I'm having and tedious problem with my shell script. It copies a file from another server to its. The trouble is here:
The file to be copied has a special char in his name, like this: "CDACampaña". But when I open my file using vi command it looks like CDACampaña.txt (When using cat command it looks correctly), and when I run the log shows that my file has no more after CDACampa...
My file code example (this is not functional, jut for understanding)
#Local machine
blabla code
cp //remote/CDACampaña.txt localfolder
bleble code
#Unix server vi command
blabla code
cp //remote/CDACampaña.txt localfolder
bleble code
#Unix log
blabla code
cp //remote/CDACampa
I tried uploading my shell as UTF8, UTF8 WO BOOM, ANSI, and with UNIX or WINDOWS eol, but nothing its working.
Please, any idea?
EDITTED:
Unix locale:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Local-pc encoding:
IsSingleByte : True
BodyName : iso-8859-1
EncodingName : Europeo occidental (Windows)
HeaderName : Windows-1252
WebName : Windows-1252
WindowsCodePage : 1252
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
EncoderFallback : System.Text.InternalEncoderBestFitFallback
DecoderFallback : System.Text.InternalDecoderBestFitFallback
IsReadOnly : True
CodePage : 1252