On Fri, 26 Mar 2004, Howard Fuchs wrote:

> Hi all:
> 
> Here is my problem. I have a script which processes input from a 
> textarea which may have 'special characters' in it like ‘ or ’ etc.
> Unfortunately what I am getting back are these ‘ or ’ respectively.
> 
> Script snippet start------------------
> 
> use CGI qw/:standard/;
> 
> 
> print "Content-type: text/html\n\n";
> $c = new CGI;
> $ta = $c->param('ta');
> 
> 
> open (TIDYFILE,">c:/tmp/tidied.html");
> print TIDYFILE $ta;
> close (TIDYFILE);
> 
> 
> Script snippet end------------------
> 
> Any help appreciated.
> 
> Howard
> 

Many "special characters" are encoded when passed to/from CGI scripts. 
That is likely what is happening to you. Try looking at HTML:Entities

perldoc HTML::Entities

--
Maranatha!
John McKown



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to