what you have posted is iso-8859-1 or equivalent -- i.e. single-byte per accented character

I don't know exactly what I have posted (i.e. didn't run a sniffer to see the actual request from my browser) but I do know that perlmonks.org is sending me Content-Type: text/html, charset=ISO-8859-1. Unfortunately, that's not my fault. I can assure you that my files are in UTF-8:

$ file lorem-ipsum2 lorem-ipsum2: UTF-8 Unicode text
I can solve one of your problems by adding "-CS" to the perl command line

Great! I've never payed much attention to -C because I thought that Perl would auto detect that things for me. But it seems I should be adding it to my bash alias and use it always on this system.

Apparently, the docs are a bit misleading about what the default behavior is

I didn't get confused by the docs and was expecting that result before getting it, but it was possible that I was overlooking something in the documentation that allowed me to get the output I wanted. That's why I asked. So if I thought about patching the code for fixing my encoding problem, now I'm thinking to patch to address this indentation issue :^).

--
David Serrano


In reply to Re^2: Text::Autoformat: usage and multibyte-encoded text by Hue-Bond
in thread Text::Autoformat: usage and multibyte-encoded text by Hue-Bond

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.