I draw a picture on php, but I can not solve the problem with the encoding for Russian characters. Tried like this: 1) in the header a header (funny, for a picture, but tried - did not help).
header ("Content-type: image/png; charset='utf-8'"); 2) to query from the database:
mysql_set_charset('utf-8'); 3) and the iconv function:
$rust = iconv('windows-1251', 'UTF-8', 'ΠΌΠΎΠΉ ΠΊΡΠ°ΡΠΈΠ²ΡΠΉ ΠΊΠΎΠ΄'); or
$rust = iconv('cp1251', 'UTF-8', 'ΠΌΠΎΠΉ ΠΊΡΠ°ΡΠΈΠ²ΡΠΉ ΠΊΠΎΠ΄'); or
$rust = iconv('cp1250', 'UTF-8', 'ΠΌΠΎΠΉ ΠΊΡΠ°ΡΠΈΠ²ΡΠΉ ΠΊΠΎΠ΄'); Separately included, all together, and in parts added - the problem did not dare: (Tell me where to dig ... thanks.
Π½Π΅ ΠΌΠΎΠ³Ρ ΡΠ΅ΡΠΈΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ Ρ ΠΊΠΎΠ΄ΠΈΡΠΎΠ²ΠΊΠΎΠΉ Π΄Π»Ρ ΡΡΡ.ΡΠΈΠΌΠ²ΠΎΠ»ΠΎΠ²- what kind of problem did you try to solve? What is the problem you forgot to describe ... well, and you should write all the code you write - Alexey Shimansky