in reply to Re^2: Perl Encoding/Decoding Doubt: From a Novice
in thread Perl Encoding/Decoding Doubt: From a Novice
I'm on Fedora, so I'm flying blind. Does that help?#!/usr/bin/perl -l use warnings; use strict; use Encode qw(encode_utf8); $| = 1; binmode STDIN, ":encoding(UTF-8)"; my $str = 'Çirçös'; $str = encode_utf8($str); print "$str"; my $str1 = 'Çirçös—'; $str1 = encode_utf8($str1); binmode STDOUT, ":encoding(UTF-8)"; print "$str1";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Encoding/Decoding Doubt: From a Novice
by Anonymous Monk on Jul 05, 2013 at 04:23 UTC |