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

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

Serving Software Downloads in 976 Categories, Downloaded 29.541.711 Times

MIME::WordDecoder 5.420

  Date Added: August 15, 2010  |  Visits: 792


Report Broken Link
Printer Friendly Version

Product Homepage
Download (79 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
More Reviews or Write Review

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  -  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  
Libraries  -  MIME::AltWords 0.12
MIME::AltWords Perl module can properly deal with RFC-1522 encoded words. SYNOPSIS The Perl module MIME::AltWords is recommended for encoding and decoding MIME words (such as =?ISO-8859-2?Q?_=E1ll_e=E1r?=) found in e-mail message headers...
21.5 KB  
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  
Finance  -  Character Set Converter
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  -  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  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB