verot / class.upload.php

This PHP class uploads files and manipulates images very easily. It is in fact as much as an image processing class than it is an upload class. Compatible with PHP 4, 5, 7 and 8. Supports processing of local files, uploaded files, files sent through XMLHttpRequest.
http://www.verot.net/php_class_upload.htm
GNU General Public License v2.0
853 stars 359 forks source link

Cyrillic symbols encoding #165

Closed ad-Ham closed 2 years ago

ad-Ham commented 2 years ago

Hello! I'm trying to put Cyrillic text on a picture and get, I suppose, an encoding error. What should I do? 7beHRpo_Em0

verot commented 2 years ago

Is your original text in UTF-8? And are you using a TTF font?

You need an appropriate TTF font, which includes the characters you need, in order to have them displayed. See f5a3ce97bfe61d28183be35bf167f6f3e76c0728

ad-Ham commented 2 years ago

Is your original text in UTF-8? And are you using a TTF font?

You need an appropriate TTF font, which includes the characters you need, in order to have them displayed. See f5a3ce9

Yes, text is in UTF-8. I'm using Roboto font, it definitely has Cyrillic characters

verot commented 2 years ago

Can you provide a test case?

ad-Ham commented 2 years ago

Sorry, I imported my font incorrectly. That was the problem