Changeset 3531 for trunk/lib/MT/I18N.pm

Show
Ignore:
Timestamp:
03/12/09 09:11:52 (9 months ago)
Author:
fumiakiy
Message:

Merged sockfish to trunk. "svn merge -r3114:3527 http://code.sixapart.com/svn/movabletype/branches/sockfish/ ."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/MT/I18N.pm

    r3039 r3531  
    1 # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. 
     1# Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 
    22# This program is distributed under the terms of the 
    33# GNU General Public License, version 2. 
     
    2323            _handle(decode => @_); 
    2424        }; 
     25        *encode = sub { 
     26            _handle(encode => @_); 
     27        }; 
    2528    } else { 
    2629        *decode = \&Encode::decode; 
     30        *encode = \&Encode::encode; 
    2731    } 
    2832}; 
     
    157161start page of the wizard, among others. 
    158162 
     163=head2 decode($enc, $text) 
     164 
     165Decode the given I<text> from the charset specified in I<enc> 
     166to UTF-8 string. 
     167 
     168=head2 encode($enc, $text) 
     169 
     170Encode the given I<text> that is a UTF-8 string to the charset 
     171specified in I<enc>. 
     172 
    159173=head1 LICENSE 
    160174 
     
    164178=head1 AUTHOR & COPYRIGHT 
    165179 
    166 Except where otherwise noted, MT is Copyright 2001-2008 Six Apart. 
    167 All rights reserved. 
     180Please see the I<MT> manpage for author, copyright, and license information. 
    168181 
    169182=cut