in reply to locale problems with cgi and apache

When and where do you set these variables? I assume they must be set before locale loads. If you're not setting them in the server's parent process or in httpd.conf before running your program, you might try:

BEGIN { $ENV{LANG} = 'de_DE@euro'; $ENV{LC_CTYPE} = 'de_DE@euro'; $ENV{LC_COLLATE} = 'POSIX'; } use locale;

Replies are listed 'Best First'.
Re: Re: locale problems with cgi and apache
by orrence (Initiate) on Nov 06, 2003 at 10:12 UTC
    Thank you for thinking about my problem. I found a solution using the module POSIX and its function setlocale like this:

    &setlocale( LC_CTYPE, 'de_DE@euro');

    Now it works the way I expect it to ...

    Daniel.