1829173 Members
2248 Online
109986 Solutions
New Discussion

strange code

 
SOLVED
Go to solution
peterchu
Super Advisor

strange code

I tried to ftp the file from UX to dos and ftp it back to another UX , then I found the file have the strange code -> ^Z , why this happen , what is this code mean ? thx in advance.
4 REPLIES 4
Bharat Katkar
Honored Contributor
Solution

Re: strange code

HI,
I think control Z character is used for saving the file and exit in DOS. SO may be the last character look like that.
Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: strange code

If you are moving the files from unix to dos then it will be encoded with dos convension's automatically. On unix, change the file with dos2ux command.

ux --> dos --> ux

file from dos with dos conventions and make it ux format with dos2ux < filename
Easy to suggest when don't know about the problem!
R. Sri Ram Kishore_1
Respected Contributor

Re: strange code

Hi,

Take a look at this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685438

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Michael Selvesteen_2
Trusted Contributor

Re: strange code

A simple solution would be

1. Open the file in Text pad
2. Under tools tab select "convert to dos"
3. Now the control charecters should have gone.

Try it.