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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -