Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/29/10 13:20
Modified:
  08/29/10 14:59

Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#178386 - Line endings - Correction
Responding to: ???'s previous message
Initially, I said:

It's the good ol' Line Endings incompatibility: Windows uses CRLF; *NIX use (I think) just LF, etc, etc...

That's why, in CodeWright, you have the option to "Windows line endings" or "UNIX line endings" or "Auto".


Edit:

Although such line-ending incompatibilities are, indeed, a common cause of such problems, it's not actually the case here!

I've just used Fiddler to look at what the 8052.com site is actually sending, and this shows that it's a bug on the 8052.com site!

When the site serves the page, it says that the "content-type" is "text/html" - this is incorrect!
If the text were HTML, it would have to contain HTML tags for the line breaks - but it doesn't.
Your browser doesn't show any line breaks because, as an HTML page, the content contains no (HTML) line breaks.

To be correctly displayed in a browser, the text should either be wrapped in 'pre' tags, or served as "text/plain"

List of 4 messages in thread
TopicAuthorDate
anyone know the reason            01/01/70 00:00      
   Line endings - Correction            01/01/70 00:00      
   RE: when I open it (IE) I get a mess            01/01/70 00:00      
      No extension in link - server can't figure out MIME type            01/01/70 00:00      

Back to Subject List