Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Using pragma utf8::all in processing non-utf data.

by daxim (Chaplain)
on Sep 04, 2013 at 14:34 UTC ( #1052357=note: print w/ replies, xml ) Need Help??


in reply to Re: Using pragma utf8::all in processing non-utf data.
in thread Using pragma utf8::all in processing non-utf data.

Just unfataling or disabling the warning makes no sense. The :encoding(UTF-8) IO layer will still be active and the readline function will produce garbage input.


Comment on Re^2: Using pragma utf8::all in processing non-utf data.
Re^3: Using pragma utf8::all in processing non-utf data.
by remiah (Hermit) on Sep 04, 2013 at 23:56 UTC

    Hello daxim.

    As you says, we have to detect it's encode and decode its 'characters' into perl's internal encoding. ":pop" will give you un-encoded $fh. It also makes no sense.

    And one more for utf8:all. Please refer its problem in this thread "How can I safely unescape a string.". After all, utf8:all never frees you from encoding troubles.

    regards

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (16)
As of 2015-07-06 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls