uh_parser/XML/SAX/PurePerl/UnicodeExt.pm
author Simon Howkins <simonh@symbian.org>
Wed, 07 Apr 2010 16:07:31 +0100
changeset 227 2101b329ee80
parent 177 6d3c3db11e72
permissions -rw-r--r--
New script for generating release note content. List of FCLs used, and the changesets that make them necessary.

# $Id: UnicodeExt.pm,v 1.1 2002/01/30 17:35:21 matt Exp $

package XML::SAX::PurePerl;
use strict;

no warnings 'utf8';

sub chr_ref {
    return chr(shift);
}

if ($] >= 5.007002) {
    require Encode;
    
    Encode::define_alias( "UTF-16" => "UCS-2" );
    Encode::define_alias( "UTF-16BE" => "UCS-2" );
    Encode::define_alias( "UTF-16LE" => "ucs-2le" );
    Encode::define_alias( "UTF16LE" => "ucs-2le" );
}

1;