Re: Can I upload Perl program in unicode?
- From: nntpman68 <news1234@xxxxxxx>
- Date: Tue, 29 Jul 2008 23:54:39 +0200
Just out of curiosity:
What was now the root cause?
bye
N
John wrote:
"szr" <szrRE@xxxxxxxxxxxxxxx> wrote in message news:g6nfae0241m@xxxxxxxxxxxxxxxxxxxx.Ben Bullock wrote:On Tue, 29 Jul 2008 09:57:57 +0200, Christian Winter wrote: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.
John schrieb:A lot of people here use Perl on Windows. One of my main uses for PerlIf 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
is manipulating Microsoft Word/Excel documents via Win32::OLE.
Did you know you can use Explorer as an ftp client on Windows? It'sand vsftpd on my
linux server. I need to look at the setup on both.
fairly handy.
Also have a look at line endings, windows-style line endsThe only problem with these on Unix systems is "bad interpreter"
(CRLF) generally don't mix well with Perl on *nix systems
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.
--
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
- Follow-Ups:
- Re: Can I upload Perl program in unicode?
- From: Bill H
- Re: Can I upload Perl program in unicode?
- References:
- Can I upload Perl program in unicode?
- From: John
- Re: Can I upload Perl program in unicode?
- From: Peter J. Holzer
- Re: Can I upload Perl program in unicode?
- From: Bill H
- Re: Can I upload Perl program in unicode?
- From: Jürgen Exner
- Re: Can I upload Perl program in unicode?
- From: John
- Re: Can I upload Perl program in unicode?
- From: Christian Winter
- Re: Can I upload Perl program in unicode?
- From: Ben Bullock
- Can I upload Perl program in unicode?
- Prev by Date: Re: Is there any module to get the cdrom infomation?
- Next by Date: Re: How come? RE matches, but does not set $^R
- Previous by thread: Re: Can I upload Perl program in unicode?
- Next by thread: Re: Can I upload Perl program in unicode?
- Index(es):
Relevant Pages
|