Re: perl for uploading file shows weird characters.
[email protected] (Gunnar Hjalmarsson)
| Newsgroups | perl.beginners.cgi,perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
[ please do not multi-post! ]
Patrik Hasibuan wrote:
> I am writing perl-cgi application for uploading a file. I did "chmod
> 777 ../../artikel". But I get weird displayed message:
> "
> ueri: ------------4CyrMz2ZeGIClwYfFsVdcv Co........
> î 6êÎ]Ë kšfþx·¾ ðfS4M3>º {½‡<Óöù³®�¯3çýGèBù= „¬È›øRƒ.....
> &ƒ ÿƒ&m‡îø'-n nÊÐJ(pÇ 9çqîÎ.........
> Ê ¨‚¡ÀÜ EÖ� z!ª˜Y6�¬úÒ„â0J¼“ñË.......
> [end so on. very longg.............]
> ".
>
> And no file copied/uploaded in '../../artikel'. But inserting the record onto
> the mysql run properly.
>
> Please tell me why.....
>
> Here I have done:
Well, the code you posted is far too much to my taste. Please post a
_small_ but complete program that illustrates the problem you are having.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl