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
Post a Comment