Re: [gedit-list] Fwd: =0A=



At 19:10 +0100 3/10/13, Adam wrote:
I have recevied a c code.
Every line has a =0A=at the end of the line.

Does it mean that it is windows EOF char ?
What is the best way to remove it ?


At 18:32 -0300 3/10/13, Matheus Boy wrote:

0x0A is ASCII for LF, Line Feed, '\n'.
My piece of advice: don't remove those chars, try changing the encoding of the file.
BTW, EOF in ASCII is 0x04.

2013/3/10 Adam <<mailto:adammaj1 o2 pl>adammaj1 o2 pl>



The =0A item looks a lot like "quoted printable" as a feature of email special encoding for otherwise 
unrecognized binary items that are not printable in the current user's machine.

Of course we, and likely you, don't know the sender's machine's OS.

You probably need to decode the data and gedit isn't very good at that. If the file opens without gedit 
complaining the "line" probably ends with =0A\n but it might be =0A\r\n with gedit accepting the official 
internet linend character pair \r\n.

hexdump or just hd piped to gedit using Terminal.app would show the facts.

hd PathToTheFile | gedit

You can probably just delete the ASCII character string "=0A" with gedit's search and replace but do try it 
with a copy.

You might be able to recover by substituting ";\n" for every semicolon if it's really a simple source code in 
C.

-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]