[Israel.pm] Hebrew with CGI

Omer Zak omerz at actcom.co.il
Mon Jun 27 13:53:06 PDT 2005

Try %D7%99 (obtained by encoding the string first to UTF-8 and then
using the appropriate JavaScript encoding function).
                                                       --- Omer

On Mon, 2005-06-27 at 23:17 +0200, Guy Malachi wrote:
> Hey guys,
> I am trying to call my CGI script with a url like this:
> http://mysite.com/myscript.pl?str=%u05D9
> As soon as my script gets a "%u" in the URL it crashes (I get an HTTP 500 error).
> Anybody have an idea how I can make this work?
> BTW: the %u05D9 is created by encoding a string that has Hebrew characters in it by using JavaScript's encodeURIComponent.
> My script is a simple CGI script that looks something like this:
> use CGI;
> my $q=new CGI;
> print $q->header();
> my $str=$q->param('str');
> #do something with $str

Jara Cimerman.  A name to remember.
My own blog is at http://www.livejournal.com/users/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

More information about the Perl mailing list