HighDots Forums  

OT document format

alt.html alt.html


Discuss OT document format in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Thies
 
Posts: n/a

Default OT document format - 08-02-2004 , 12:19 AM






I tend to move files back and forth from Mac to Windows to *nix.

My windows editor (NoteTab) is unable to recognize the Mac linefeeds and
tends to make long lines of everything with little square boxes where
the linefeeds were.

So what format is best for exchanging documents between different OS's?

DOS/Windows
Mac
UNIX
EBCDIC
Dos ASCII

???

And just what is the difference between ASCII and ANSI?

I'm unsure what the linefeed are, my catchalls seem to be:

/\r\n|\n|\r/
/\f/

I think the \r\n is windows, \n is UNIX and the \f is Mac

Is it better to use the numeric equivalents?

Jeff



Reply With Quote
  #2  
Old   
bulge
 
Posts: n/a

Default Re: OT document format - 08-02-2004 , 09:41 PM






On Mon, 02 Aug 2004 04:19:08 GMT, Jeff Thies
<jeff (AT) spamalanadingong (DOT) com> wrote:

Quote:
I tend to move files back and forth from Mac to Windows to *nix.

My windows editor (NoteTab) is unable to recognize the Mac linefeeds and
tends to make long lines of everything with little square boxes where
the linefeeds were.
That might explain a site I'm trying to rework now. I noticed square
boxes too. (well, the w3c validator noticed them for me, I think). I
think it must've been from a Mac.

Don't know much about Macs so I can't help you there.


Quote:
So what format is best for exchanging documents between different OS's?

DOS/Windows
Mac
UNIX
EBCDIC
Dos ASCII

???

And just what is the difference between ASCII and ANSI?

I'm unsure what the linefeed are, my catchalls seem to be:

/\r\n|\n|\r/
/\f/

I think the \r\n is windows, \n is UNIX and the \f is Mac

Is it better to use the numeric equivalents?

Jeff



Reply With Quote
  #3  
Old   
Jeff Thies
 
Posts: n/a

Default Re: OT document format - 08-03-2004 , 01:20 PM



Toby Inkster wrote:
Quote:
Jeff Thies wrote:


So what format is best for exchanging documents between different OS's?

<snip>

Quote:
I think you're getting three different concepts muddled up. Firstly
character set -- use UTF-8 or ISO-8859-15, not ASCII. ASCII hugely limits
which characters you'll be able to use. It has no £ nor € for instance.
It looks to me that in the windows text editors I've used that the
character set used is itself set by the OS, not by the text editing
program. Does that sound right? What a mess, at least on the windows side.
Quote:
Secondly, use Windows line endings. Most Unix editors and many Mac editors
should be able to both read and write Windows line endings. Certainly
Nedit and Nano on Linux can.
That is what I've been experiencing. Windows (as is so often the case)
handles other OS's poorly. The Mac hasn't complained, and of course, the
linux web server has no problem with anything.
Quote:
Thirdly, ignore ANSI -- it will only be important to you if you're doing
text-mode DOS programming in fancy colours.
That will come as a blow to a client of mine who proudly proclaimed that
she only used ANSI!

Thanks. All this is so basic and internalized as to be obscured in every
day use. The simplest problems cause me more grief than anything else!

Jeff
Quote:

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.