Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by mje (Curate)
on Oct 18, 2013 at 16:24 UTC ( #1058779=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $d = decode('UTF-8', $r->[0][0]);
    say data_string_desc($d);
    print Dumper(\$d);
    
  2. or download this
    f0,a0,80,a0,f0,a4,88,82,f0,b1,86,85,f0,a3,91,a0,
    UTF8 on, non-ASCII, 4 characters 16 bytes
    ...
    UTF8 off, non-ASCII, 16 characters 16 bytes
    UTF8 on, non-ASCII, 4 characters 16 bytes
    $VAR1 = \"\x{20020}\x{24202}\x{31185}\x{23460}";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-09-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (474 votes). Check out past polls.