perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir S. Tikhonjuk" <>
Subject Unescape URI
Date Tue, 12 Sep 2006 05:32:03 GMT
Hi all!
I have JavaScript function, which constructs html query like this:

var url =

where variable 'key' is a value of form's line edit. When I enter there
non ASCII symbol, I get
url like this:

Here is my personal_account_search_ajax handler:

package Promtelecom::PersonalAccountSearchAjax;

use strict;
use Apache2::Const -compile => qw( OK );

sub handler {
  my $r = shift;
  my $req = Apache2::Request->new( $r );
  $req->content_type('text/xml; charset=KOI8-R');

  my $search_key = $req->param('key');
  my $search_type = $req->param('type');
  my $archive_search = $req->param('archive_search');

  return Apache2::Const::OK;

As I understand, I have to unescape URI here to get right value of
How to do it ?

Best regards,
Vladimir S. Tikhonjuk

View raw message