Hi

A colleague kept complaining today that 5.24's uc produced "SS" from uc("ß")

I tried explaining to him that this is according to standard orthographic rules taught in school.°

(Anyway he kept blaming Perl ... ;-)

NOW ... they actually invented and standardized a capital form some years ago, see https://en.wikipedia.org/wiki/Capital_%E1%BA%9E#Development_of_a_capital_form

Questions

I see a potential upgrading problem arising from there ...

my results with Strawberry Perl so far on a German Win version

use strict; use warnings; use utf8; $\="\n"; print "Perlversion $]"; print "$_ -> ",ord($_) for "ß", "\Uß", uc("ß");

C:/Strawberry/perl/bin\perl.exe -w d:/tmp/job/eszet.pl Perlversion 5.032001 ß -> 223 SS -> 83 SS -> 83

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) "ß" is a ligature which developed centuries ago from of two old "s" variants, long story ...

... for comparison, I occasionally see "oe" ligatures in French loan words in English texts

edit

erroneously posted in PMD, moved to SOPW


In reply to uc and German eszett "ß" by LanX

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.