Encode-ZapCP1252 script download - Encode-ZapCP1252 Encode-ZapCP1252 module performs an *in place* conversion of the CP1252 g

Encode-ZapCP1252 script 0.01 Publisher Review:


Encode-ZapCP1252 Encode-ZapCP1252 module performs an *in place* conversion of the CP1252 gremlins into appropriate ASCII approximations.
Encode-ZapCP1252 module performs an *in place* conversion of the CP1252 gremlins into appropriate ASCII approximations. This module performs an *in place* conversion of the CP1252 gremlins into appropriate ASCII approximations.< into app you ever been processing a Web form submit, assuming that the incoming text was encoded in ISO-8859-1 (Latin-1), only to end up with a bunch of junk because someone pasted in content from Microsoft Word? Well, this is because Microsoft uses a superset of the Latin-1 encoding called "Windows Western" or "CP1252". So mostly things will come out right, but a few things--like curly quotes, m-dashes, elipses, and the like--will not. The differences are well-known; you see a nice chart at documenting the differences on Wikipedia: . Of course, that won't really help you. What will help you is to quit using Latin-1 and switch to UTF-8. Then you can just convert from CP1252 to UTF-8 without losing a thing, just like this: use Encode; $text = decode('cp1252', $text, 1);But I know that there are those of you out there stuck with Latin-1 and who don't want any junk charactrs from Word users, and that's where this module comes in. It will zap those CP1252 gremlins for you, turning them into their appropriate UTF-8 approximations. UsageThis module exports a single subroutine: "zap_cp1252()". You use it like this zap_cp1252($text); This subroutine performs an *in place* conversion of the CP1252 gremlins into appropriate ASCII approximations. Note that because the conversion happens in place, the data to be converted *cannot* be a string constant; it must be a scalar variable.

Encode-ZapCP1252 script 0.01 details and screenshot


Screenshot:

Rating: 7 Votes:
Rating for Encode-ZapCP1252 script: 7 from  votes
Rate this software:


Scan computer and update all your drivers before downloading.

Release date: 0000-00-00
Last update: 2009-10-29
Platform: Windows / Linux / Mac OS / BSD / Solaris
Language: Perl
Company: David Wheeler
Info url: http://www.justatheory.com/




Download Encode-ZapCP1252 script 0.01
RECOMMENDED TOOLS


Related tags:

Related downloads

Show Categories on Home Page script      
Show Categories on Home Page Show Categories on Home Page - modified Zoli's original contr
Price: GPL$, Rating: 10, Downloads: 0
EnsEMBL-Web-Record script 1.01     
EnsEMBL-Web-Record EnsEMBL-Web-Record is a family of modules used for managing a user's pe
Price: Other Free / Open So$, Rating: 9, Downloads: 0
DBD::Mimer script 1.00     
DBD::Mimer DBD::Mimer is a Perl5 database interface for the Mimer SQL database.
Price: Other Free / Open So$, Rating: 9, Downloads: 0
Embperl script 2.002000     
Embperl Embperl gives you the power to embed Perl code in your HTML documents and the abil
Price: Other Free / Open So$, Rating: 8, Downloads: 0
Env-PS1 script 0.05     
Env-PS1 Env-PS1 package supplies variables that are ``tied'' to environment variables like
Price: Other Free / Open So$, Rating: 8, Downloads: 0
DBD-InterBase script 0.47     
DBD-InterBase DBD-InterBase is a Perl module which works with the DBI module to provide ac
Price: Other Free / Open So$, Rating: 7, Downloads: 0
ACME-Error script 0.03     
ACME-Error ACME-Error module is a front end to Perl error styles.
Price: Other Free / Open So$, Rating: 8, Downloads: 0
Config Maker script 0.007     
Config Maker Config Maker is the main module for Config::Maker file generation library.
Price: Other Free / Open So$, Rating: 10, Downloads: 0