mdxi has asked for the wisdom of the Perl Monks concerning the following question:
I ran into this problem when doing the initial import from a flatfile but was able to fix that by doing 'use open ":utf8";'. I've tried setting forms to 'accept-charset="utf-8"', and using the various techniques described in perldoc perlunicode and Encode, and even setting STDIN's binmode to utf8 (which I didn't expect to work but what the hey).
I know the forms data is *in* unicode because it will match things in the database, just not in the right place.
So my question boils down to: how do I get perl to believe that data from HTML forms is, in fact, Unicode?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode and Forms
by Aristotle (Chancellor) on Dec 14, 2003 at 19:33 UTC | |
by mdxi (Beadle) on Dec 14, 2003 at 20:52 UTC | |
|
Re: Unicode and Forms
by liz (Monsignor) on Dec 14, 2003 at 19:44 UTC | |
by graff (Chancellor) on Dec 15, 2003 at 03:00 UTC | |
|
Re: Unicode and Forms
by JamesNC (Chaplain) on Dec 14, 2003 at 19:56 UTC | |
|
Re: Unicode and Forms
by graff (Chancellor) on Dec 15, 2003 at 03:16 UTC |