ipconfig /?|hexdump 00000000: 0D 0D 0A 55 53 41 47 45 - 3A 0D 0D 0A 20 20 20 20 | USAGE: + | 00000010: 69 70 63 6F 6E 66 69 67 - 20 5B 2F 3F 20 7C 20 2F |ipconfig +[/? | /| 00000020: 61 6C 6C 20 7C 20 2F 72 - 65 6E 65 77 20 5B 61 64 |all | /re +new [ad| 00000030: 61 70 74 65 72 5D 20 7C - 20 2F 72 65 6C 65 61 73 |apter] | +/releas| 00000040: 65 20 5B 61 64 61 70 74 - 65 72 5D 20 7C 0D 0D 0A |e [adapte +r] | | 00000050: 20 20 20 20 20 20 20 20 - 20 20 20 20 20 20 2F 66 | + /f| 00000060: 6C 75 73 68 64 6E 73 20 - 7C 20 2F 64 69 73 70 6C |lushdns | + /displ| 00000070: 61 79 64 6E 73 20 7C 20 - 2F 72 65 67 69 73 74 65 |aydns | / +registe| 00000080: 72 64 6E 73 20 7C 0D 0D - 0A 20 20 20 20 20 20 20 |rdns | + |
You can see 0D 0D 0A repeatedly. chcp says cmd.exe is using cp437
cmd.exe and notepad don't show extra newlines.
Is it an actual encoding or just errant output?

Here is a perlio solution

open IN, '-|:raw:crlf', 'ipconfig /?' ... open OUT', '>:raw' ..

In reply to ipconfig output encoding ( 0D 0D 0A ) by Anonymous Monk

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.