php - Convert Lower Case Special Character to UpperCase -


i have ñ special character. it's uppercase equivalent Ñ. want convert lowercase special character uppercase. tried code below:

strtouppercase('ñ'); ucfirst('ñ'); ucwords('ñ'); 

but code above not convert anything. shall convert special character?

ascii value 'ñ' 241. difference between uppercase , lowercase characters 32 can use like:

echo mb_convert_encoding(chr(241-32), "utf-8"); 

to print desired character Ñ

i hope helps.


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -