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

Re^3: Perl DBI can't display Chinese text?

by graff (Chancellor)
on Oct 15, 2013 at 01:55 UTC ( #1058224=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl DBI can't display Chinese text?
in thread Perl DBI can't display Chinese text?

Regarding this message:

Wide character in print at E:\...\ConnectSQLServer.pl line 122.
Figure out what file handle is being printed to at line 122 of that script. If it's STDOUT, then somewhere before you reach that statement, you should do:
binmode STDOUT, ':utf8';
If it's some file handle that you open, add ':utf8' to the mode portion of the open call - e.g.
open( my $output_handle, '>:utf8', $output_name ) or die $!;


Comment on Re^3: Perl DBI can't display Chinese text?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-31 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls