I add text to image in php using the following code:
$font_path = 'assets/bend/fonts/Arial.ttf';
$text = 'Молдавия';
imagettftext($stars, 40, 0, 150, 200, $white, $font_path, $text);
imagejpeg($stars, 'images/newtes1.jpg');
However, it fails to read non latin letters such as russian for example. It shows symbols like squares. I have changed different fonts which work otherwise, but when i want to add to the image it doesnt. I work with netbeans if it matters. Thanks in advance.