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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -