Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Using encoding

by vsespb (Hermit)
on Jan 11, 2013 at 17:59 UTC ( #1012939=note: print w/ replies, xml ) Need Help??


in reply to Re: Using encoding
in thread Using encoding

It's more correct to write:

use strict; use warnings; use utf8; my $string = ''; open my $output, '>:encoding(utf8)', 'out.txt' or die $!; #binmode $output, ":encoding(utf8)"; print $output $string; close $output;
(with or without 'binmode $output, ":encoding(utf8)"' but without 'binmode $output;')


Comment on Re^2: Using encoding
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-05-06 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (130 votes), past polls