Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing case of Character with accents

Status
Not open for further replies.

mikgu

Programmer
Feb 19, 2009
1
0
0
CA
Im having troubles converting french characters to upper/lowercase
for example, uc('ééé') returns ééé

Is there anyway this can be done?

Thanks in advance
 
Here is a horrible solution but might start you in the right direction.
You need to know the ASCII values of the ones you can't convert wit uc.
Hope there’s not very many.

my %vowels = (
132 => 142, # dec value for ascii a' / A'
138 => 144, # dec value for ascii e' / E'
141 => 73, # dec value for ascii i' / I
149 => 153, # dec value for ascii o' / O'
129 => 154, # dec value for ascii u' / U'
);
foreach ( sort keys %vowels ) {
printf "%c %c\n",$_,$vowels{$_};
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top