Skip to main content.
home | support | download

Back to List Archive

Scandinavian characters

From: Mikael Niku <mikael.niku(at)>
Date: Wed Nov 07 2001 - 13:41:32 GMT

I'm bothering you with a question that is probably very
simple to anyone knowin Perl:

I succesfully set up SWISH-E on my www site. Everything
is working well - except that the example CGI script
provided at
doesn't like scandinavian characters. Command-line
SWISH-E search has no problems with that.

I never had time to learn Perl, and couldn't fix this
by tinkering the script code. I'd be very grateful if
someone could help me out!

I guess the relevant part of the code is the following:

$keystring = $FORM{'keywords'};
if ($keystring =~ /^([\w\-\. ]+)$/ ) {
    $topic = $1;
} else {
    &dienice("Bad keyword: `$topic'.  Please don't use commas or
non-alphanumeric characters.");

   Mikael Niku             URL:
   University of Helsinki  Dept. Basic Veterinary Sciences
       - Mitäkö mieltä olen länsimaisesta sivistyksestä?
         Minusta se olisi erinomainen ajatus!
                                              - Gandhi
Received on Wed Nov 7 13:42:06 2001