Unicode::MapUTF8

Unicode::MapUTF8 is a Perl module with conversions to and from arbitrary character sets and UTF8.
Download

Unicode::MapUTF8 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Benjamin Franz
  • Publisher web site:
  • http://www.nihongo.org/snowhare/utilities/ftpweblog/

Unicode::MapUTF8 Tags


Unicode::MapUTF8 Description

Unicode::MapUTF8 is a Perl module with conversions to and from arbitrary character sets and UTF8. Unicode::MapUTF8 is a Perl module with conversions to and from arbitrary character sets and UTF8.SYNOPSIS use Unicode::MapUTF8 qw(to_utf8 from_utf8 utf8_supported_charset); # Convert a string in 'ISO-8859-1' to 'UTF8' my $output = to_utf8({ -string => 'An example', -charset => 'ISO-8859-1' }); # Convert a string in 'UTF8' encoding to encoding 'ISO-8859-1' my $other = from_utf8({ -string => 'Other text', -charset => 'ISO-8859-1' }); # List available character set encodings my @character_sets = utf8_supported_charset; # Add a character set alias utf8_charset_alias({ 'ms-japanese' => 'sjis' }); # Convert between two arbitrary (but largely compatible) charset encodings # (SJIS to EUC-JP) my $utf8_string = to_utf8({ -string =>$sjis_string, -charset => 'sjis'}); my $euc_jp_string = from_utf8({ -string => $utf8_string, -charset => 'euc-jp' }) # Verify that a specific character set is supported if (utf8_supported_charset('ISO-8859-1') { # Yes }Provides an adapter layer between core routines for converting to and from UTF8 and other encodings. In essence, a way to give multiple existing Unicode modules a single common interface so you don't have to know the underlaying implementations to do simple UTF8 to-from other character set encoding conversions. As such, it wraps the Unicode::String, Unicode::Map8, Unicode::Map and Jcode modules in a standardized and simple API.This also provides general character set conversion operation based on UTF8 - it is possible to convert between any two compatible and supported character sets via a simple two step chaining of conversions.As with most things Perlish - if you give it a few big chunks of text to chew on instead of lots of small ones it will handle many more characters per second.By design, it can be easily extended to encompass any new charset encoding conversion modules that arrive on the scene.This module is intended to provide good Unicode support to versions of Perl prior to 5.8. If you are using Perl 5.8.0 or later, you probably want to be using the Encode module instead. This module does work with Perl 5.8, but Encode is the preferred method in that environment.Requirements:· PerlWhat's New in This Release:· Documentation changes. Addition of Build.PL support.· Added various build tests, LICENSE, Artistic_License.txt, GPL_License.txt.· Split documentation into seperate .pod file. Added Japanese translation of POD.


Unicode::MapUTF8 Related Software