Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
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:
does indeed fix it but also prints all the other accented letters with accents.substr($loc_temp_name,0,1) = uc(substr(decode("utf8",$loc_temp_nam +e),0,1));
I've tried various permutations of this theme but to no avail.
Ideas gratefully received.
Regards
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accented letter is not capitalised
by moritz (Cardinal) on Feb 14, 2012 at 13:01 UTC | |
by Steve_BZ (Chaplain) on Feb 16, 2012 at 20:52 UTC | |
by moritz (Cardinal) on Feb 16, 2012 at 21:07 UTC | |
by tchrist (Pilgrim) on Feb 17, 2012 at 01:04 UTC | |
by Steve_BZ (Chaplain) on Feb 17, 2012 at 16:05 UTC | |
by tchrist (Pilgrim) on Feb 17, 2012 at 20:11 UTC |