Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?

by CountZero (Bishop)
on Apr 21, 2013 at 11:39 UTC ( [id://1029753]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?
in thread How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?

Can you expand on why String::BOM is not a (good) solution to your question?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re^5: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found