XML::UM 0.01
Sponsored Links
XML::UM 0.01 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1172
Date added:
2006-08-09
Publisher:
Enno Derksen
XML::UM 0.01 description
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. Thats 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.)
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. Thats 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.)
XML::UM 0.01 Screenshot
XML::UM 0.01 Keywords
XML
UM
UTF
UM 0.01
Encoding
to convert
supported by
Perl module
UTF-8
convert
strings
Perl
module
files
XML::UM
XMLUM
Bookmark XML::UM 0.01
XML::UM 0.01 Copyright
WareSeeker periodically updates pricing and software information of XML::UM 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::UM 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
xml version 1.0 encoding utf 8
utf 8 encoding
utf 8
convert celsius to fahrenheit
convert grams to ounces
convert mm to inches
perl modules
convert pdf to word
utf 8 character set
convert wma to mp3
convert meters to feet
install perl module
convertibles
india tidal wave utf 8
convert steps to miles
utf 8 part 1
utf 8 encoding chart
currency converter
Related Software
XML::Output is a Perl module for writing simple XML documents. Free Download
Bare XML project is a XML parser with all primary parsing done via a simple state engine with about 20 or so different states. Free Download
XML::WBXML is a Perl module to convert between XML and WBXML using libwbxml2. Free Download
XML::CompareML is a Perl module for managing multi-system and multi-item comparisons. Free Download
Pod::XML is a Perl module to convert POD to XML. Free Download
XML::LibXML::Enhanced is a Perl module that adds convenience methods to XML::LibXML and LibXSLT. Free Download
XML::SAX2Perl is a Perl module to translate Perl SAX methods to Java/CORBA style methods. Free Download
PLJava is Perl module that will embed Perl into Java. Free Download
Latest Software
Popular Software
Favourite Software