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!
#!/usr/bin/perl my $input=$ARGV[0];
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.
Alexander
In reply to Re: Encoding and decoding a Unicode
by afoken
in thread Encoding and decoding a Unicode
by suno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |