Changeset 99 in lab


Ignore:
Timestamp:
Dec 19, 2010 12:15:35 AM (13 years ago)
Author:
mitty
Message:
  • FIX: Wide character in print
    • $status->{user}{name} may contain UTF-8 characters
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Dev/twitter/dump_timeline.pl

    r98 r99  
    8888                $text .= " [" . $status->{created_at} . "]"; 
    8989                $text .= " (". $status->{id} . ")"; 
    90                 $text .= " ". encode('utf8', $status->{text}); 
     90                $text .= " ".  $status->{text}; 
    9191                $text =~ s/\n//; 
    92                 print $text, "\n"; 
     92                print encode('utf8', $text), "\n"; 
    9393            } 
    9494        } 
Note: See TracChangeset for help on using the changeset viewer.