Linux SoftwareProgrammingLibrariesXML::UM 0.01

XML::UM 0.01


XML::UM is a Perl module to convert UTF-8 strings to any encoding supported by XML::Encoding. SYNOPSIS use XML::UM; # Set
Developer:   Enno Derksen
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   5K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


XML::UM is a Perl module to convert UTF-8 strings to any encoding supported by XML::Encoding.

SYNOPSIS

use XML::UM;

# Set directory with .xml files that comes with XML::Encoding distribution
# Always include the trailing slash!
$XML::UM::ENCDIR = '/home1/enno/perlModules/XML-Encoding-1.01/maps/';

# Create the encoding routine
my $encode = XML::UM::get_encode (
Encoding => 'ISO-8859-2',
EncodeUnmapped => &XML::UM::encode_unmapped_dec);

# Convert a string from UTF-8 to the specified Encoding
my $encoded_str = $encode->($utf8_str);

# Remove circular references for garbage collection
XML::UM::dispose_encoding ('ISO-8859-2');

This module provides methods to convert UTF-8 strings to any XML encoding that XML::Encoding supports. It creates mapping routines from the .xml files that can be found in the maps/ directory in the XML::Encoding distribution. Note that the XML::Encoding distribution does install the .enc files in your perl directory, but not the.xml files they were created from. That's why you have to specify $ENCDIR as in the SYNOPSIS.

This implementation uses the XML::Encoding class to parse the .xml file and creates a hash that maps UTF-8 characters (each consisting of up to 4 bytes) to their equivalent byte sequence in the specified encoding. Note that large mappings may consume a lot of memory!
Future implementations may parse the .enc files directly, or do the conversions entirely in XS (i.e. C code.)

Requirements:
  • Perl
    tags xml encoding  the xml  encoding distribution  xml files  the enc  note that  enc files  parse the  specified encoding  iso 8859  with xml  files that  encoding iso  

    Download XML::UM 0.01


     http://mirrors.evolva.ro/CPAN/authors/id/T/TJ/TJMATHER/XML-UM-0.01.tar.gz


    Authors software

    XML::Checker::Parser 1.02 (by Enno Derksen)
    XML::Checker::Parser is an XML::Parser that validates at parse time.

    SYNOPSIS

    use XML::Checker::Parser;

    my %expat_options

    XML::DOM::DocumentType 1.44 (by Enno Derksen)
    XML::DOM::DocumentType is an XML document type (DTD) in XML::DOM.

    XML::DOM::DocumentType extends XML::DOM::Node.

    Each Document

    XML::UM 0.01 (by Enno Derksen)
    XML::UM is a Perl module to convert UTF-8 strings to any encoding supported by XML::Encoding.

    SYNOPSIS

    use XML::UM;

    # Set


    Similar software

    XML::UM 0.01 (by Enno Derksen)
    XML::UM is a Perl module to convert UTF-8 strings to any encoding supported by XML::Encoding.

    SYNOPSIS

    use XML::UM;

    # Set

    Convert::Base32 0.02 (by Tatsuhiko Miyagawa)
    Convert::Base32 is a Perl module for encoding and decoding of base32 strings.

    SYNOPSIS

    use Convert::Base32;

    $encoded = e

    Convert::BER 1.3101 (by Graham Barr)

    Encode::RAD50 0.002 (by Thomas R. Wyant)

    MP3Unicode 1.0 (by Andrei Dubovik)
    MP3Unicode is a command line utility to convert ID3 tags in mp3 files between different encodings.

    For example, mp3unicode --sourc

    Convert::EastAsianWidth 0.03 (by Autrijus Tang)
    Convert::EastAsianWidth is a Perl module that can convert between full- and half-width characters.

    SYNOPSIS

    # Exports to_fu

    XTM::AsTMa 0.37 (by Robert Barta)
    XTM::AsTMa is a Topic Map Parsing of AsTMa instances.

    SYNOPSIS

    # reading a topic map description from a file/url
    $atm = ne

    WWW::Webrobot::Html2XHtml 0.80 (by Stefan Trcek)
    WWW::Webrobot::Html2XHtml is a Perl module that can convert HTML to XML.

    SYNOPSIS

    use WWW::Webrobot::Html2XHtml;
    my $convert

    libb64 1.2.1 (by Chris Venter)
    libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format

    MIME::Base64 3.07 (by Gisle Aas)
    MIME::Base64 is an encoding and decoding of base64 strings.

    SYNOPSIS

    use MIME::Base64;

    $encoded = encode_base64('Aladdin:o


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags