Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.353.239 Times

MIME::WordDecoder 5.420

  Date Added: August 15, 2010  |  Visits: 1.124

MIME::WordDecoder

Report Broken Link
Printer Friendly Version


Product Homepage
Download (97 downloads)



MIME::WordDecoder is a Perl module to decode RFC-1522 encoded words to a local representation. SYNOPSIS See MIME::Words for the basics of encoded words. See "DESCRIPTION" for how this class works. use MIME::WordDecoder; ### Get the default word-decoder (used by unmime()): $wd = default MIME::WordDecoder; ### Get a word-decoder which maps to ISO-8859-1 (Latin1): $wd = supported MIME::WordDecoder "ISO-8859-1"; ### Decode a MIME string (e.g., into Latin1) via the default decoder: $str = $wd->decode(To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= ); ### Decode a string using the default decoder, non-OO style: $str = unmime(To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= ); A MIME::WordDecoder consists, fundamentally, of a hash which maps a character set name (US-ASCII, ISO-8859-1, etc.) to a subroutine which knows how to take bytes in that character set and turn them into the target string representation. Ideally, this target representation would be Unicode, but we dont want to overspecify the translation that takes place: if you want to convert MIME strings directly to Big5, thats your own decision. The subroutine will be invoked with two arguments: DATA (the data in the given character set), and CHARSET (the upcased character set name). For example: ### Keep 7-bit characters as-is, convert 8-bit characters to #: sub keep7bit { local $_ = shift; tr/x00-x7F/#/c; $_; } Heres a decoder which uses that: ### Construct a decoder: $wd = MIME::WordDecoder->new({US-ASCII => "KEEP", ### sub { $_[0] } ISO-8859-1 => &keep7bit, ISO-8859-2 => &keep7bit, Big5 => "WARN", * => "DIE"}); ### Convert some MIME text to a pure ASCII string... $ascii = $wd->decode(To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= < keld >); ### ...which will now hold: "To: Keld J#rn Simonsen < keld >".

Requirements: No special requirements
Platforms: Linux
Keyword: Ascii Character Set Decode Encoded Keld Local Mime Mimeworddecoder Perl Module Rfc To Decode Worddecoder Words
Users rating: 0/10

License: Freeware Size: 378.88 KB
USER REVIEWS
More Reviews or Write Review


MIME::WORDDECODER RELATED
Libraries  -  MIME::EncWords 0.040
MIME::EncWords is a Perl module created to deal with RFC-1522 encoded words (improved). SYNOPSIS MIME::EncWords is aimed to be another implimentation of MIME::Words so that it will achive more exact conformance with MIME specifications....
21.5 KB  
Finance  -  Character Set Converter 2.0.0.13
Character Set Converter a conversion tool that was designed to help you convert from one character set to another within text documents. It supports nearly all ISO 8859 character sets, all DOS character sets, most important Apple charactersets...
 
Security Tools  -  HXTT Character Set Converter 1.0
HXTT Character Set Converter is a free toolkit for text file. That freeware should work on any platform that supports Java.
 
Libraries  -  Encode 2.21
Encode is a Perl module created to deal with character encodings. SYNOPSIS use Encode; Table of Contents Encode consists of a collection of modules whose details are too big to fit in one document. This POD itself explains the top-level...
1.9 MB  
Libraries  -  CORBA::IOP::IOR 0.1
CORBA::IOP::IOR is a Perl module used to decode, munge, and re-encode CORBA IORs. SYNOPSIS #!/usr/local/bin/perl -w require CORBA::IOP::IOR; $ior = new CORBA::IOP::IOR; $ior->parseIOR($ARGV[0]); $ior->printHash();...
8.19 KB  
Libraries  -  Mon::SNMP 0.11
Mon::SNMP is a Perl module created to decode SNMP trap. SYNOPSIS use Mon::SNMP; $trap = new Mon::SNMP; $trap->buffer($snmptrap); %traphash = $trap->decode; $error = $trap->error; Mon::SNMP provides methods to decode SNMP trap PDUs....
23.55 KB  
Libraries  -  Convert::ASCIInames 1.002
Convert::ASCIInames is a Perl module that includes ASCII names for control characters. SYNOPSIS use Convert::ASCIInames; Convert::ASCIInames::Configure(fallthrough => 1); $name = ASCIIname($character_ordinal); $name =...
11.26 KB  
Libraries  -  MIME::Words 5.420
MIME::Words is a Perl module to deal with RFC-1522 encoded words. SYNOPSIS Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait....
389.12 KB  
Network & Internet  -  HTML Entity Based Codepage Inference 0.01
HEBCI is a technique that allows a web form handler to transparently detect the character set its data was encoded with. By using carefully-chosen character references, the browsers encoding can be inferred. Thus, it is possible to guarantee...
5.12 KB  
Libraries  -  Encode::MIME::Header 2.23
Encode::MIME::Header is a Perl module that contains MIME B and Q header encoding. SYNOPSIS use Encode qw/encode decode/; $utf8 = decode(MIME-Header, $header); $header = encode(MIME-Header, $utf8); ABSTRACT This module implements RFC 2047...
1.9 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB