Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

by remiah (Hermit)
on Aug 30, 2012 at 10:29 UTC ( #990713=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

You fixed it , or you didn't fix it. I would recommend to check the version of with command like this.

perl -MCGI -e 'print $CGI::VERSION'

From Character Encodings in Perl, which moritz sometimes cites for unicode issue.

Special care must be taken when reading POST or GET parameters with the function param in the module CGI. Older versions (prior to 3.29) always returned byte strings, newer version return text strings if charset("UTF-8") has been called before, and byte strings otherwise. 
So, it is possible that you use older version of And one day someone upgrade, you will be in trouble.

Sometimes, older module has different behavior for decoding. I stumbled with older LWP::Simple and these troubles really embarrass me.

Replies are listed 'Best First'.
Re^4: HTML Form > PERL Script in UTF-8 issue
by Anonymous Monk on Aug 30, 2012 at 20:09 UTC
    You got me worried now, I'm not too familiar with these things. I found out I have version 3.55 of I do have it functioning currently, although I'm not very trusting of it long-term, let alone exactly how it's functioning.
Re^4: HTML Form > PERL Script in UTF-8 issue
by Jishanator (Initiate) on Aug 30, 2012 at 20:35 UTC
    It's 3.55, I'm not too sure if that's a red flag or not? seems to have explicit flag like '-utf8', So, 3.55 may have no problem at all.

      I have no intention to worry you.

      That doc will help you when you have some trouble with unicode, so please read that.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990713]
[erix]: on teh other hand a SOPW is pretty much garanteed to get an answer from tux (and probably the module fixed)
[ELISHEVA]: plus it bugs me that something that *should* be simple, *should* work- unicode and noms aren't exactly the new kids on the block
[ELISHEVA]: well then since the obvious possible mistakes on my part have been ruled out, SOPW it is.
[ELISHEVA]: the data source, or one of them, is the OECD - they provide a *lot* of data that ought to be easily available to perl programmers.
[erix]: it might be cunning to mention the module in the title... :)
[ELISHEVA]: fancy that - a title that actually describes the problem :-)
[ELISHEVA]: but actually thanks for the reminder
[Discipulus]: DBI::CSV + utf8 = BOO?M
[erix]: in extremis we tend to forget stuff ;)
[ELISHEVA]: \Disciplus : lol

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-05-28 20:36 GMT
Find Nodes?
    Voting Booth?