Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Notepad: I'm seeing squares.

by pboin (Deacon)
on Nov 23, 2005 at 15:48 UTC ( #511137=note: print w/replies, xml ) Need Help??


in reply to Notepad: I'm seeing squares.

You've got a bad assumption somewhere. "\r\n" on a unix-y perl will positively give you valid DOS carriage control. Open your file with a hex editor and you'll see something other than hex "0d0a" there for sure. That's the best way to shoot your problem.

Replies are listed 'Best First'.
Re^2: Notepad: I'm seeing squares.
by emilford (Friar) on Nov 23, 2005 at 15:55 UTC
    I viewed the file and the double squares do equate to 0D0A. That's what it's supposed to be right?
      Yes. x'0D0A' is valid DOS carriage control. But notepad shouldn't be putting up boxes for it. Any chance you can post your text file somewhere so others can test it? Or, maybe you can reproduce the problem w/ non-sensitive data.
        No. I see the squares in the hex viewer too. Is that normal? It does interpret them as x0d0a, but they are squares, nonetheless.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-07-29 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?