Hi Guys,
I have a slightly strange issue here.
I am using a piece of code:
substr($loc_temp_name,0,1) = uc(substr($loc_temp_name,0,1));
All the other letters are coming out capitalised nicely, but letters with accents are coming out in lower case still.
Eg Diagnosis "úlcera" (ulcera with u accented) does not have capitalised "Ú" (U with accent).
Trying to fix with:
substr($loc_temp_name,0,1) = uc(substr(decode("utf8",$loc_temp_nam
+e),0,1));
does indeed fix it but also prints all the other accented letters with accents.
I've tried various permutations of this theme but to no avail.
Ideas gratefully received.
Regards
Steve
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.