|Keep It Simple, Stupid|
Re: Encoding and decoding a Unicodeby afoken (Chancellor)
|on Jul 10, 2015 at 12:31 UTC ( #1134140=note: print w/replies, xml )||Need Help??|
I tried the below code for decoding but still got empty lines.
Some unexpected empty lines or only empty lines?
Empty lines after (almost) all lines you read? chomp!
Add use strict; and use warnings;. Ignoring perl's debugging aids just wastes everyone's time.
And finally, whenever you think that perl has encoding problems, show us a hex dump of the input and the output.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section Seekers of Perl Wisdom