in reply to Perl Encoding/Decoding Doubt: From a Novice
#!/usr/bin/perl -l use strict; use warnings; use Encode qw(encode encode_utf8); $| = 1; my $str = "Çirçös"; $str = encode_utf8($str); print $str; my $str1 = "Çirçös—"; $str1 = encode('UTF-8', $str1); binmode STDOUT, ":encoding(UTF-8)"; print $str1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Encoding/Decoding Doubt: From a Novice
by ppremkumar (Novice) on Jul 04, 2013 at 15:34 UTC | |
by Khen1950fx (Canon) on Jul 04, 2013 at 16:11 UTC | |
by Anonymous Monk on Jul 05, 2013 at 04:23 UTC |