Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: HTML Form > PERL Script in UTF-8 issue

by Jishanator (Initiate)
on Aug 30, 2012 at 20:24 UTC ( #990844=note: print w/ replies, xml ) Need Help??

in reply to Re^2: HTML Form > PERL Script in UTF-8 issue
in thread HTML Form > PERL Script in UTF-8 issue

HTML Form = Saved as UTF-8 File. Post >

In a required file, I set binmode (STDOUT, "utf8"); Then from the, I call a require that goes through a foreach loop that does this:

#!/usr/bin/perl use Encode; foreach $field (@fields) { $input{$field} = Encode::decode('UTF-8', $input{$field}); }

From, information is printed out to the user for them to confirm, when submitted, we move to outputs everything into an external file.. which then concludes to which pulls the information from the external file and displays it one last time in a sort of "receipt" manner, for them to print or save.

So to summarize the process, HTML Form > (converts through foreach to utf8) > > (converts through foreach again). If for example, doesn't convert, the information is all different in success. I'm afraid this might bite me in the ass in a later stage.

I posted this, forgot to login...

Comment on Re^3: HTML Form > PERL Script in UTF-8 issue
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990844]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-11-27 04:22 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls