Howto find which files are in PC and which ones are in MAC ?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Howto find which files are in PC and which ones are in MAC ?
Using TextPad, is there some way to find which files are in PC and which ones are in MAC ?
Thank you.
Roger
I hope General is ok as
I did not know where to post this question...
Thank you.
Roger
I hope General is ok as
I did not know where to post this question...
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Where are the parameters/properties hinding in the file ?
ben_josephs
AmigoJack
Sirs,
I am looking at a batch of 151 files.
I see what Ctrl-F1 tells me.
I also know how to look at the properties function ( Alt-Enter ) of each of the files ; but, being lazy, I thought perhaps some code should be visible in the file.
Where is the data ( visible with Alt-Enter and Ctrl-F1 ) hiding ?
Where are the parameters hinding in the file ?
Thank you.
AmigoJack
Sirs,
I am looking at a batch of 151 files.
I see what Ctrl-F1 tells me.
I also know how to look at the properties function ( Alt-Enter ) of each of the files ; but, being lazy, I thought perhaps some code should be visible in the file.
Where is the data ( visible with Alt-Enter and Ctrl-F1 ) hiding ?
Where are the parameters hinding in the file ?
Thank you.
The "code" is "visible" if you'd look at your file in binary. To find all files for one of the line ending modes search all files (CTRL+F5), tick the condition "Regular expression" and:
- find [^\x0a]\x0d[^\x0a] to list all files having only CR linebreaks (Mac)
- find [^\x0d]\x0a[^\x0d] to list all files having only LF linebreaks (Unix)
- find \x0d\x0a to list all files having CRLF linebreaks (Windows)
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
There are no parameters. The line endings are just characters in the file.
If you highlight whole lines you will see that the highlight extends to the right of the text of each line. Unix (including Mac OS X/macOS) uses LF line endings and old Macs used CR line endings; both these single-character line endings show as a single highlighted space. Windows uses CR,LF line endings; these double-character line endings show as two highlighted spaces. The difference is easier to see if you select View | Visible Spaces.
And if you search for \n (generic newline) (with Regular expression selected) the text found will be one character wide for LF or CR, two characters wide for CR,LF.
If you highlight whole lines you will see that the highlight extends to the right of the text of each line. Unix (including Mac OS X/macOS) uses LF line endings and old Macs used CR line endings; both these single-character line endings show as a single highlighted space. Windows uses CR,LF line endings; these double-character line endings show as two highlighted spaces. The difference is easier to see if you select View | Visible Spaces.
And if you search for \n (generic newline) (with Regular expression selected) the text found will be one character wide for LF or CR, two characters wide for CR,LF.
Howto find which files are in PC and which ones are in MAC
Thank you very much.
I found the two files.
Please take a look at
Perhaps I could have found them by looking at
the result in the website also ;
but now I learned something with TextPad.
Regards
I found the two files.
Please take a look at
Perhaps I could have found them by looking at
the result in the website also ;
but now I learned something with TextPad.
Regards
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
The difference between those two files is in their encoding, not the operating system under which they were produced (or their line endings).
In the upper example the character encoding of the page is different from the encoding assumed by the browser. Perhaps the file in the upper example is ISO-8859-1 (or Windows-1252) and the file in the lower one is UTF-8.
Examine the files in binary and look for the encoding of, say, é. If it's encoded as (hex) E9, it's ISO-8859-1 (or Windows-1252). If it's encoded as C3 A9 it's UTF-8.
In the upper example the character encoding of the page is different from the encoding assumed by the browser. Perhaps the file in the upper example is ISO-8859-1 (or Windows-1252) and the file in the lower one is UTF-8.
Examine the files in binary and look for the encoding of, say, é. If it's encoded as (hex) E9, it's ISO-8859-1 (or Windows-1252). If it's encoded as C3 A9 it's UTF-8.
ben_josephs, Thank you for your comment.
If you'd looked at the original http://rene.pommier.free.fr/Decence.htm
you would say differently.
I have simply recorded the HTML code from the « faulty » file
Code : ANSI
File type : MAC :
into a different one:
Code : UTTF-8
File type : PC
see :
Thank you all.
p.s.
How can I mark this thread as resolved ?
If you'd looked at the original http://rene.pommier.free.fr/Decence.htm
you would say differently.
I have simply recorded the HTML code from the « faulty » file
Code : ANSI
File type : MAC :
into a different one:
Code : UTTF-8
File type : PC
see :
Thank you all.
p.s.
How can I mark this thread as resolved ?
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
phpBB doesn't know threads either, only topics.wsl wrote:this thread
I'm afraid fundamental understandings about line endings and encodings is still not clear to you. Not to speak of that you came in the with a question that has nothing to do with what is discussed now.
In TextPad use the menu item "Save as..." and then pay attention to the combobox "Encoding" - select "UTF-8" there and preferably tick the checkbox "UNICODE BOM" too to make your HTML document being interpreted correctly. Unrelated to on which operating system you edited it.
How to find which files are in PC and which ones are in MAC
Thank you AmigoJack for correctly answering my question
"How to find which files are in PC and which ones are in MAC ?"
It helped me find the wrongly coded pages
Regards,
"How to find which files are in PC and which ones are in MAC ?"
It helped me find the wrongly coded pages
Regards,