in reply to Non asci character and system call
Hello Anonymous Monk,
I do not have a WindowsOS to test your code, but I tried it on a LinuxOS that I am having and seems to work with my pdf viewer (okular). Try something like that:
#!/usr/bin/perl
use utf8;
use strict;
use warnings;
use open ':std', ':encoding(UTF-8)';
my $commandline = qq{start "" /max "c:\сервис.pdf"}; # full screen
system($commandline) == 0
or die qq{Couldn't launch '$commandline': $!/$?};
I think you have not defined correctly the path. Let us know if it worked.
BR / Thanos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non asci character and system call
by Anonymous Monk on Nov 08, 2017 at 19:05 UTC | |
by 1nickt (Canon) on Nov 08, 2017 at 19:08 UTC | |
by Anonymous Monk on Nov 08, 2017 at 21:52 UTC | |
by thanos1983 (Parson) on Nov 08, 2017 at 19:22 UTC | |
by Anonymous Monk on Nov 08, 2017 at 21:41 UTC |