Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: how to get exactly same text from a file

by Anonymous Monk
on Nov 26, 2012 at 13:44 UTC ( [id://1005661]=note: print w/replies, xml ) Need Help??


in reply to Re: how to get exactly same text from a file
in thread how to get exactly same text from a file

Thanks but it didn't solve my proble. Can you specify , how to convert the garbled character mentioned above into it's respective character.
  • Comment on Re^2: how to get exactly same text from a file

Replies are listed 'Best First'.
Re^3: how to get exactly same text from a file
by rovf (Priest) on Nov 26, 2012 at 15:01 UTC
    Which encoding is used for the text in your source file? Which encoding would you like to use for output? If you just output the content of your inputfile (using cat, or, if you run Windows, using TYPE), does it look right?

    -- 
    Ronald Fischer <ynnor@mm.st>
Re^3: how to get exactly same text from a file
by Anonymous Monk on Nov 26, 2012 at 15:14 UTC

    Thanks but it didn't solve my proble. Can you specify , how to convert the garbled character mentioned above into it's respective character.

    It wasn't meant to solve your problem, it is meant to teach you how stuff works, and what you need to do to solve your problem

    "garbled characater" is a something you should avoid when trying to get help, you should talk about bytes, or better yet, perl code

    perl -MData::Dump -MFile::Slurp -e " dd scalar read_file shift, { qw/ binmode :raw / }; " AnyKindOfInputFile > ThatFilesBytesAsPerlCode.pl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (None)
    As of 2024-04-25 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found