Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: binmode, encoding layer, ignoring encoding problems

by choroba (Cardinal)
on May 17, 2010 at 13:58 UTC ( [id://840358]=note: print w/replies, xml ) Need Help??


in reply to binmode, encoding layer, ignoring encoding problems

If I understand your question, you want to convert a string and replace non-convertable characters with ?. See Handling Malformed Data in Encode documentation.
  • Comment on Re: binmode, encoding layer, ignoring encoding problems

Replies are listed 'Best First'.
Re^2: binmode, encoding layer, ignoring encoding problems
by McA (Priest) on May 17, 2010 at 14:27 UTC
    Hi choroba,

    I know this piece of documentation. But how does it help me?

    Probably just some glue informations are missing, but at the moment I don't know how this document helps me.

    a) Encode says that the default for encoding is Encode::FB_DEFAULT and this means that there will be placed a substitution character when a character can't be encoded. That's not true with pushing an encoding layer to a file handle.

    b) Are the encoding mechanisms with the module Encode somehow interrelated with the encoding done by layers?

    Clearifing needed. :-)

    Best regards
    Andreas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-23 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found