uh_parser/XML/SAX/PurePerl/UnicodeExt.pm
author William Roberts <williamr@symbian.org>
Fri, 30 Jul 2010 17:06:23 +0100
changeset 279 73890f073898
parent 176 6d3c3db11e72
permissions -rw-r--r--
v0.19 of downloadkit.py - removed the "-p" short form of --password, to avoid confusion with "--progress" if the first minus is omitted - add support for "Do You Feel Lucky?" downloads, which included changing the version check - added report_to_symbian() which logs the way that downloadkit is used and the success or failure - added --nopublicity to turn off report_to_symbian()

# $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;