Squares at end of lines

Squares at end of lines

dodger57

    Feb 18, 2006#1

    Hi,

    Since either upgrading or fiddling with a configuration ... I now have these open blocks at the end of each line and in empty lines. Seems to be only in .php files.

    Here is a link to a screenshot of what I'm talking about. :)
    http://www.dreamscraps.com/blocks.gif

    How can I remove those from the display?

    Thanks
    Dodge

    6,602548
    Grand MasterGrand Master
    6,602548

      Feb 19, 2006#2

      Are these characters carriage returns? They appear if either the file has not correct line endings like CRCRLF or you have the wrong settings.

      I suggest following settings in the File Handling configuration page:

      Conversions - On Paste convert line ending to destination type (UNIX/MAC/DOS) should be set.

      DOS/UNIX/MAC Handling - Automatically convert to DOS format should be selected.

      Save - Save file as input format (UNIX/MAC/DOS) should be checked.

      Now while editing the file is always a DOS file (lines terminated with CRLF) which is still the best at Windows OS, but are saved in the same format (DOS, UNIX or MAC) as it was before opening the file.

      If this does not fix your problem, then your files are already corrupted. Search for ^r^r^n and replace it with ^p to fix it. Switch to hex mode to see how the lines of your files are terminated. CR has hex code 0D and LF has hex code 0A. 0D 0D 0A is bad and also 0A 0D 0A if no 0D is before first 0A. Bad LFCRLF without a CR before first LF can be also fixed, but only with a regular expression replace or in hex mode.

      How do you upload/download your PHP files to/from the server which I guess is a Unix server? In binary or in ASCII mode?

      The ASCII mode is only necessary if you have your PHP files on your harddisk in DOS format (CRLF). So the FTP program has to convert all CRLF to LF during upload and all LF to CRLF during download. If your files are already stored on your harddisk in UNIX mode (LF only) the binary mode should be used for the FTP transfer.

      For more infos see also forum topic ASCII DOS Unix File format settings
      Best regards from an UC/UE/UES for Windows user from Austria

      dodger57
      dodger57

        Feb 20, 2006#3

        Thanks!

        "DOS/UNIX/MAC Handling - Automatically convert to DOS format should be selected."

        was NOT selected. Selecting it seems to have fixed this problem - thank you very much!

        Dodge