Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

General Discussions


You are currently viewing our General Discussions as a guest. Please register to participate.
Login



Reply
Question about txt files losing there formating that are generated on a webserver.
Old 07-12-2007, 08:31 PM Question about txt files losing there formating that are generated on a webserver.
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Hi I have a question I think it should go here :

When my Linux server generates a file I look at the source code after I get it back on my xp machine through the FTP when I look at it I see garbage square zeros and it loses it's formating what should I do about this also when I open them with Dreamweaver 8 the look the way they are supposed to but in notepad I see square zeros and the formating looks terrible.

Does any one know how to solve this?
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Old 07-13-2007, 01:20 AM Re: Question about txt files losing there formating that are generated on a webserver
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by goheadtry View Post
Does any one know how to solve this?
It's been a while since I fired DW up. First have a look at what Wikipedia has to say:

Quote:
Software applications and operating systems usually represent a newline with one or two control characters:
  • Systems based on ASCII or a compatible character set use either LF (Line feed, 0x0A) or CR (Carriage Return, 0x0D) individually, or CR followed by LF (CR+LF, 0x0D0A); see below for the historical reason for the CR+LF convention. These characters are based on printer commands: The line feed indicated that one line should feed out of the printer, and a carriage return indicated that the printer carriage should return to the beginning of the current line.
    • LF: Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, etc.), BeOS, Amiga, RISC OS, and others
    • CR+LF: DEC RT-11 and most other early non-Unix non-IBM OSes, CP/M, MP/M, MS-DOS, OS/2, Microsoft Windows
    • CR: Commodore machines, Apple II family and Mac OS up to version 9
There should be a setting in DW to expect a unix format file. The Windows format pretty much became standard, and Dreamweaver sees your code as a file with one huge line that has funny characters here and there inside it.

If Dreamweaver won't do this, that would mean it's lousy software, but you could use something like Notepad++ to convert the text file for you, or write up a script to replace Linux line endings with Windows ones.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 07-13-2007, 01:28 PM Re: Question about txt files losing there formating that are generated on a webserver
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Dreamweaver is doing this correct it is notepad that is not showing this correctly
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 07-13-2007, 02:18 PM Re: Question about txt files losing there formating that are generated on a webserver
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Try File, Open, Encoding.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 07-13-2007, 07:15 PM Re: Question about txt files losing there formating that are generated on a webserver
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Notepad can only use windows end line encoding.
You can open the file with wordpad, and this program will detect the unix new lines and display them ok.

If you want notepad to display those files correctly, then you need to convert the line feed characters.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Question about txt files losing there formating that are generated on a webserver.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41815 seconds with 12 queries