[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: utf8 urls


Eli Shemer wrote:

For some reason the following test doesn’t print anything out to the screen

Do I need to change something in the apache configuration, or mod_perl’s ?

 

/articles_read.pl?id=חוזרת

 

## get http parameters

$r = shift;

$apr = Apache2::Request->new($r);

print  $apr->param('id');


I'm not sure why you get nothing, but I can tell you strings read from Apache objects come through as octets and need to be decoded before use.  We're using UTF-8 chars in URLs but I've never used one in a GET request parameter.

hope that helps,
John


 

 

thanks in advance.

 


Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.4/1146 - Release Date: 22/11/2007 18:55



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.