Re: file encoding prob.



igthibau@xxxxxxxxxx writes:

Hi there,
Right, I wrote a fortran code that reads text files and produces output.
The problem is that the files I created to test the code work fine. But
files I get from "outside", even if as ascii contain control codes that
screw things up.

Things like ^@^M and such.

dos2unix does nothing.

So, the big question is : how does one strip files from these codes, or
change them to linux standards?

This is the one thing that prevents the process to work and I am running out
of ideas here.

First be more exact in your problem description.
The "and such" part is throwing me off.

If you see the above symbols, you'd have to tell use which program
showed them. Better to run "od -x" and tell us if it's line endings
only or something else.
.



Relevant Pages

  • Re: file encoding prob.
    ... I wrote a fortran code that reads text files and produces output. ... The problem is that the files I created to test the code work fine. ... how does one strip files from these codes, or ... change them to linux standards? ...
    (comp.os.linux.misc)
  • Re: file encoding prob.
    ... I wrote a fortran code that reads text files and produces output. ... The problem is that the files I created to test the code work fine. ... change them to linux standards? ... First be more exact in your problem description. ...
    (comp.os.linux.misc)
  • file encoding prob.
    ... I wrote a fortran code that reads text files and produces output. ... The problem is that the files I created to test the code work fine. ... how does one strip files from these codes, or ... change them to linux standards? ...
    (comp.os.linux.misc)