Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: Notepad: I'm seeing squares.

by emilford (Friar)
on Nov 23, 2005 at 15:50 UTC ( #511139=note: print w/replies, xml ) Need Help??

in reply to Re^2: Notepad: I'm seeing squares.
in thread Notepad: I'm seeing squares.

While that might work, I don't have the liberty of copying the file back and forth between environments. I need to provide the user with a downloadable version of the file that will look as it should (i.e. - no squares).

Replies are listed 'Best First'.
Re^4: Notepad: I'm seeing squares.
by Mutant (Priest) on Nov 23, 2005 at 16:11 UTC
    I don't think wazzuteke is suggesting you use this as your actual solution, but it might help you diagnose where things are going wrong. How are you transferring files?
      I'm creating and storing the files on a Unix file server. Then on the windows side, a browser is being pointed at the file. It opens up in the browser. File->Save Page As. Done.
        Hmm.. that may not be the best way to do it. The user can choose whatever browser they want, and set things like encoding type, etc. which might cause you a lot of problems. A cleaner way to do it might be to use the 'Content-Disposition' header (try a Super Seach on this), which will prompt the browser to download the file automatically.

        This may or may not solve your actual problem though. If you've viewed the file with a hex editor once it gets to windows, and it has the correct EOL sequence, then I can't see why notepad should be putting squares after it.
        Is this a web browser you're referring to? If so, what Content-type header is being sent? If it's not "text/plain", try that and see if that helps.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://511139]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2021-10-23 16:54 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.