Hi, I'm using the php code below to strip the last letters of words when they are declined in different forms. It is working fine, although with the latin letters, but when I want to decline greek words I suddenly get �. Any ideas on how to fix this? Thank you kindly!
<?php echo substr_replace($wordRow['word_name'], "ές", -1); ?>
This is the nominative case τροφή but when declined in nominative case plural it becomes τροφ�ές. When I try to strip the "ή" I get the replacement char.