Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by remiah (Hermit)
on Sep 04, 2013 at 23:56 UTC ( #1052460=note: print w/replies, xml ) Need Help??


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

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

  • Comment on Re^3: Using pragma utf8::all in processing non-utf data.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052460]
help
Chatterbox?
[sierpinski]: thanks LanX that helps
[haukex]: the first index is always 0 - $#array gives you the last index in @array
[sierpinski]: gotcha, thanks
[LanX]: length = last index +1
[Eily]: yes LanX, both Metz and Nancy have a train station, it's just not the for the TGV
[LanX]: but the one in Metz is pretty! ;-p

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2017-12-13 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?