Changeset 294a3aa in lab.git for Dev


Ignore:
Timestamp:
Dec 19, 2010 12:15:35 AM (14 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
ee655ec
Parents:
fe75883
Message:
  • FIX: Wide character in print
    • $status->{user}{name} may contain UTF-8 characters

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@99 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/twitter/dump_timeline.pl

    rfe75883 r294a3aa  
    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.