I think what you have there is characters above 0x7f. The difference is critical, as perl will handle characters above 0xff (if utf8 encoded) without further intervention.
To use your locale settings to determine how to deal with uppercasing, etc. these, try
use locale;.
Otherwise, if you know they are latin1, you can upgrade to utf8 with
utf8::upgrade($aaa); $bbb = uc $aaa; print "$bbb\n";
--which will output utf8-encoded data. If you don't want that, add utf8::downgrade($bbb); before the print (but see the doc before using utf8::downgrade).
If you know they are in some other encoding, specify that with use encoding "whatever"; and then use utf8::*grade as above.
(Also, note that at least one utf8 character (chr(223), "LATIN SMALL LETTER SHARP S") will produce two characters ("SS")
when uppercased.)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.