Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Confusing UTF-8 bug in CGI-script

by wanradt (Scribe)
on Feb 01, 2011 at 15:50 UTC ( #885523=note: print w/replies, xml ) Need Help??

in reply to Re: Confusing UTF-8 bug in CGI-script
in thread Confusing UTF-8 bug in CGI-script

Thank, you! Locale is evil, once i wrote even node about it (any use of 'use locale'?), but i don't blame it here. At least commenting it out does have no effect.

Nġnda, WK
  • Comment on Re^2: Confusing UTF-8 bug in CGI-script

Replies are listed 'Best First'.
Re^3: Confusing UTF-8 bug in CGI-script
by Corion (Pope) on Feb 01, 2011 at 15:52 UTC

    So, are you sure that your script is encoded as UTF-8? Because that's what you tell Perl:

    use utf8;

    If it is not encoded as that, that's likely what leads to these decoding errors and/or the crashes.

      Yes, i am. The hardcoded UTF-8 characters in script are showed properly. My full environment is UTF-8 and i work with them years. Still, here i am and could not find the bug.

      Nġnda, WK

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://885523]
[sierpinski]: Corion I haven't -- but it sounds like you could corner the market on such a tool if you desired.
Discipulus if thezip is still around can be interested into How to hide/inhibit the console window when launching a Perl script on Windows?
[Corion]: sierpinski: Yes, but I don't want to write Javascript in a more involved way ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2017-03-27 19:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.