I understand the argument you're making, but I disagree about the word "compatible". I think a more accurate way of saying it is "Perl does not assume a unicode environment", "the unicode support is opt-in", and "getting Perl to treat its environment as unicode requires a lot of tedious steps".

For contrast, Python 3 does assume a unicode environment, giving people that convenient out-of-the-box support feel, but Python 2 did not, and it caused a great deal of breakage to change that assumption. Perl will probably never change the default, in order to maintain backward compatibility. There are many environments that really still aren't Unicode, and Perl still needs to run in those. There are in fact many more environments Perl can run in than Python, because of that.

I do wish, though, that there was a simpler option like an environment variable or command line switch that would make Perl assume a unicode environment. That option would probably break a bunch of modules and scripts, and would still need to be opt-in, but people could gradually start supporting it in the same way that we can run perl with Taint checking and see what that breaks. Most importantly though, having it be a single switch rather than dozens of switches all over would make a massive difference for convenience.


In reply to Re^6: Converting Unicode by NERDVANA
in thread Converting Unicode by BernieC

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.