Here is simple input data:
Year*JEDocSrcP_USERE_DATE P_DATE CurLine 2011617 GJ448 Bruce12/20/1101/01/11USD1500 2011617 GJ349áBruce12/20/1101/01/11USD1500 2011617 GJ350 Bruce12/20/1101/01/11USD1500 2011617 GJ351 Bruce12/20/1101/01/11USD1500
The output looks like this:
First 20: Year*JEDocSrcP_ First 20: 2011617 GJ448 Bruce1 First 20: 2011617 GJ349áBruce First 20: 2011617 GJ350 Bruce1 First 20: 2011617 GJ351 Bruce1
Note that the asterisk * is really the UTF-8 heart symbol ♥. It wasn't displaying correctly here so I just put an asterisk there. I will work on the hex dump for you.

but I think it is counting octets


In reply to Re^2: Read and write UTF-8 by Norah
in thread Read and write UTF-8 by Norah

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.