jyankel has asked for the wisdom of the Perl Monks concerning the following question:
C# app.#!/usr/bin/perl -w use strict; use utf8; binmode(STDOUT,':encoding(UTF-8)'); my $string= "\x{126}is. \x{166}good"; #my $string = pack('U', 294) . "is. " . pack('U', 358) . " good"; print "Sent = $string\n"; system ("Example.exe \"$string\"");
using System; using System.Text; namespace Example { class Example { static void Main(string[] args) { Console.WriteLine("Received " + args[0]); System.Environment.Exit(0); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode (utf8) does not pass correctly to Windos system call.
by ikegami (Patriarch) on Nov 16, 2009 at 15:33 UTC | |
by jyankel (Initiate) on Nov 16, 2009 at 15:43 UTC | |
by moritz (Cardinal) on Nov 16, 2009 at 16:05 UTC | |
by ikegami (Patriarch) on Nov 16, 2009 at 16:29 UTC | |
by jyankel (Initiate) on Nov 17, 2009 at 13:06 UTC | |
|
Re: Unicode (utf8) does not pass correctly to Windos system call.
by jyankel (Initiate) on Nov 17, 2009 at 13:16 UTC |