Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Handling params from Javascript's encodeURIComponent function

by Baz (Friar)
on Mar 27, 2005 at 20:40 UTC ( [id://442696]=note: print w/replies, xml ) Need Help??


in reply to Handling params from Javascript's encodeURIComponent function

This works for me.
#!/usr/bin/perl -w use strict; $| = 1; use CGI qw/:standard :no_xhtml/; use CGI::Carp "fatalsToBrowser"; use Encode; print header(),start_html(-title=>""); my $name = "\x{1E02}oo"; my $param1 = param("f0"); Encode::_utf8_on($temp); print nice_string($param1),br; if($param1 eq $name) { print "EQUAL",br; } print end_html(); sub nice_string { join("", map { printf("%04X ", $_) } unpack("U*", $_[0])); # unpack Unicode characters }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found