I realized I posted an error in the perl code above. I corrected that (Just had some inconsistent string names when I simplified the example.) I will try and clarify my question.

The output of the perl print statement is what I expect. The print command is correctly displayed in the uft8 encoding, however the encoded string is not encoded when it is passed through the system command to the C# application on windows. I'll try and post what I'm seeing.

Output of perl program.
>perl test.pl
>Sent Ħis. Ŧ good
>Received Ħis. Ŧ good

Output of C# application when run by itself with the same encoded string argument that the perl program should pass to it.
>Example.exe Ħis. Ŧ good
>Received Ħis. Ŧ good


By itself the C# program does display a utf8 encoded string if passed to it from the windows command prompt. On a linux system the perl script does work and the C# application receives the utf8 encoded string from the perl system() call.

If I run the perl script on linux I get this output which is what I want.
>perl test.pl
>Sent Ħis. Ŧ good
>Received Ħis. Ŧ good

In reply to Re: Unicode (utf8) does not pass correctly to Windos system call. by jyankel
in thread Unicode (utf8) does not pass correctly to Windos system call. by jyankel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.