Changeset 3531 for trunk/lib/MT/I18N.pm
- Timestamp:
- 03/12/09 09:11:52 (9 months ago)
- Files:
-
- 1 modified
-
trunk/lib/MT/I18N.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/MT/I18N.pm
r3039 r3531 1 # Movable Type (r) Open Source (C) 2001-200 8Six Apart, Ltd.1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 2 # This program is distributed under the terms of the 3 3 # GNU General Public License, version 2. … … 23 23 _handle(decode => @_); 24 24 }; 25 *encode = sub { 26 _handle(encode => @_); 27 }; 25 28 } else { 26 29 *decode = \&Encode::decode; 30 *encode = \&Encode::encode; 27 31 } 28 32 }; … … 157 161 start page of the wizard, among others. 158 162 163 =head2 decode($enc, $text) 164 165 Decode the given I<text> from the charset specified in I<enc> 166 to UTF-8 string. 167 168 =head2 encode($enc, $text) 169 170 Encode the given I<text> that is a UTF-8 string to the charset 171 specified in I<enc>. 172 159 173 =head1 LICENSE 160 174 … … 164 178 =head1 AUTHOR & COPYRIGHT 165 179 166 Except where otherwise noted, MT is Copyright 2001-2008 Six Apart. 167 All rights reserved. 180 Please see the I<MT> manpage for author, copyright, and license information. 168 181 169 182 =cut
