Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread Roman Vašíček
On Fri, Feb 11, 2005 at 01:56:55PM +0100, Roman Vašíček wrote: > It is strange. CGI works ok, but i was unable to get correct output even > from module even first time. It seems to be ok for me after switching > from perl-script to modperl handler. > > apache2.

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread Roman Vašíček
It is strange. CGI works ok, but i was unable to get correct output even from module even first time. It seems to be ok for me after switching from perl-script to modperl handler. apache 2.0.48 mod_perl1.99_14 perl5.0.8 SetHandler modperl # perl-script does

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-10 Thread Roman Vašíček
I expect multiple decoding of the same text. Try to use conditional decoding $text = Encode::decode_utf8($text) if !Encode::is_utf8($text); or let us look at your code. If you are sure that source data encoding is utf8 and only utf8 flag is missing it is possible to use (but probably not

Re: POSIX valid_user.al

2005-02-02 Thread Roman Vašíček
Probably wrong/broken installation of Authen::Smb. Valid_User is defined in file smbval/valid.c which is part of Authen::Smb distribution. Try to recompile/reinstall Authen::Smb again. Roman On Wed, Feb 02, 2005 at 12:36:06PM +, [EMAIL PROTECTED] wrote: > Morning > > > I'm trying to run

Re: Output a page for download

2005-01-12 Thread Roman Vašíček
On Wed, Jan 12, 2005 at 09:51:25AM -0500, John Saylor wrote: > hi > > ( 05.01.12 09:38 -0500 ) Sean Davis: > > I would like to output tab-delimited text (from a database lookup) to > > the user as an application/octet-stream with the name > > "tissue_dump.txt". I can't figure out the correct wa

Re: Output a page for download

2005-01-12 Thread Roman Vašíček
Hi, use $r->content_type('application/octet-stream); to set the content type in tissue_dump.txt if file exist and is processed as Mason component (or in dhandler if does not exist). I expect code will looks like $r->content_type('application/octet-stream'); # set content type $m->print($out

Re: [Mason] Problems w/ Apache2+Mason on Fedora Core 2

2004-12-02 Thread Roman Vašíček
On Wed, Dec 01, 2004 at 08:20:03PM -0500, Kurt Hansen wrote: > > Also, there is an Apache::Request version 2. It's not on CPAN, but you > can get it and the documentation here: > > http://httpd.apache.org/apreq/ > Realy it is not on CPAN? http://search.cpan.org/search?query=libapreq2&mode=dis

Apache2+mod_perl2+Mason - limit upload size

2004-11-30 Thread Roman Vašíček
Hi all, I want to limit upload size on my Apache2+Mason powered website depending to user category - eg: guest = 500kB, registered = 2MB, admin = 10 MB. I already found answered question on perlmonks.org http://www.perlmonks.org/index.pl?node_id=328687 but described solution seems to doe