Re: Can I upload Perl program in unicode?



On Jul 29, 5:54 pm, nntpman68 <news1...@xxxxxxx> wrote:
Just out of curiosity:

What was now the root cause?

bye

N



John wrote:
"szr" <sz...@xxxxxxxxxxxxxxx> wrote in message
news:g6nfae0241m@xxxxxxxxxxxxxxxxxxxx
Ben Bullock wrote:
On Tue, 29 Jul 2008 09:57:57 +0200, Christian Winter wrote:

John schrieb:
If a Perl script can be encoded in UTF8, the problem must lie with
the upload.  I use WS_FTP Pro on my Windows (sorry) machine
A lot of people here use Perl on Windows. One of my main uses for Perl
is manipulating Microsoft Word/Excel documents via Win32::OLE.

and vsftpd on my
linux server.  I need to look at the setup on both.
Did you know you can use Explorer as an ftp client on Windows? It's
fairly handy.

Also have a look at line endings, windows-style line ends
(CRLF) generally don't mix well with Perl on *nix systems
The only problem with these on Unix systems is "bad interpreter"
messages if there is a ^M at the end of the #! line. But these
messages come from the shell, not Perl itself. Perl is able to cope
with any kind of line endings on Unix, so you can run your scripts
as "perl myscript" it will  be OK.
Another little trick I've used before in such situations is, after
uploading, go to your Linux shell and open the script in 'pico', then save
the file. When pico saves the file, it will have converted any \CR\LF
sequences to just LF. I am not sure who it handles UTF8, however. And I'm
sure there are other tools for converting as well.

--
szr

Good news.  It is all working fine now.  I tested it with French, German,
Persian, Chinese and Greek.
I had some problems with DBI and MySQL with Perl and UTF8 but I managed to
get that to work too.
Many thanks for all the input.
Regards
John- Hide quoted text -

- Show quoted text -

Was wondering that myself

Bill H
.



Relevant Pages

  • Re: Can I upload Perl program in unicode?
    ... not Perl itself. ... On my Windows machine I use ScITE as my editor for Perl. ... I upload with WS_FTP PRO. ...
    (comp.lang.perl.misc)
  • Re: [PHP] Re: progress in PHP
    ... Yes perl is used because it gives access to raw post data. ... eliminate the popup and show the progress bar in a frame you don't need ... > Because PHP does not provide support to handle the raw HTTP request. ... there is no way to handle upload progress with a PHP only ...
    (php.general)
  • Perl robot uploading to ASP Web page
    ... I have an asp web page where I can upload a file to the web server ... I have a Perl script which is able to post a file to a Perl based ...
    (comp.lang.perl.misc)
  • Re: Send Email
    ... I couldn't upload a tar file to this geocites site so I uploaded ... the script uploads an attachment if there is one and then ... This was coded about five years ago before many of the Perl ... translated into PHP should you want to keep an entire PHP ...
    (comp.lang.perl.misc)
  • Re: Iterated mega file upload - invented wheel wanted
    ... >page that allows a user to upload very large files, ... Perl on the server side might be your best bet. ... Your problem is going to be 90% client side. ... say embedded applet. ...
    (comp.lang.php)