FTP client problem

Discussion in 'HTML & Website Design' started by GPGrieco, Dec 2, 2007.

  1. #1
    I think this is the right board, but please move it if it's not. I have been using filezilla for a while now. I installed the newest version on a new computer (newer then what I have been using), and it keeps compressing the file. When I say compressing the file, I mean it remove the lines and replaces it with .

    So
    
    this
    is
    an
    example
    
    Code (markup):
    becomes
    
    thisisanexample
    
    Code (markup):
    How can I fix this. Here it is not that confusing, but when you are trying to edit html or php files it gets very confusing.
     
    GPGrieco, Dec 2, 2007 IP
  2. GPGrieco

    GPGrieco Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does anyone know the answer to this? It would really help
     
    GPGrieco, Dec 6, 2007 IP
  3. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Off the top of my head I'd say that looks like an issue with a carrige-return\line-feed combo being converted to one or the other. You see things like that if you open a file created on a UNIX-like machine in Windows Notepad because UNIX uses an LF.

    Check your settings in Filezilla for somthing about auto-detecting line endings.

    By any chance are you using a different operating system than you were before on this new[er] computer ?
     
    joebert, Dec 6, 2007 IP
  4. GPGrieco

    GPGrieco Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't see any setting for line endings. I am using the same os (windows XP) on both computers.
     
    GPGrieco, Dec 7, 2007 IP
  5. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #5
    How about the editor you're using to edit the files, is there such a setting in it ?
     
    joebert, Dec 7, 2007 IP
  6. leesyg

    leesyg Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Looks like binary.
     
    leesyg, Dec 7, 2007 IP
  7. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #7
    Nah, you can change the character encoding of a file with extended characters from UTF-8 to ANSI & get the same missing glyph boxes.

    It's got to be somthing with line endings because whatever is displaying it is showing it all on one line.
     
    joebert, Dec 7, 2007 IP
  8. GPGrieco

    GPGrieco Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The editor I'm using is notepad. I'm just going to try another ftp client.
     
    GPGrieco, Dec 11, 2007 IP
  9. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #9
    Well, if using a new FTP application doesn't work here's what I want you to do.

    Create a folder on your desktop, call it "Notepad2".

    Get Notepad2 & save it in that folder you just made. Specificly the download labeled like this, it will be an exe.
    Notepad2 works alot like Notepad, but it has some added bells & whistles.

    Click on the exe in that folder, it will open what looks almost exactly like an instance of Notepad. Open the file in question just like you would open a file with Notepad. (CTRL+O or File->Open)

    Once the file is open, look at the bottom of the application & you'll see what type of line-endings the file is using. It will look like one of these two. More than likely the file will also look normal in the editor.
    [​IMG]
    [​IMG]

    If it looks like the second image, then you're not going to be able to continue editing your files with Notepad unless you want to "fix" your line endings every time you swap files with the server.

    You can either double click the LF, CR, CR+LF part of the status bar in those images to cycle through the types of line endings. Or you can use the file menu that looks like this.
    [​IMG]

    If the file is LF or CR & not CR+LF, set it to CR+LF & save the file. Then open it in regular Notepad. It should look like you expect it to look now.
     
    joebert, Dec 11, 2007 IP