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.

  • one
    Π½Π΅ ΠΌΠΎΠ³Ρƒ Ρ€Π΅ΡˆΠΈΡ‚ΡŒ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΡƒ с ΠΊΠΎΠ΄ΠΈΡ€ΠΎΠ²ΠΊΠΎΠΉ для рус.символов - 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
  • one
    What is the encoding in the database itself? - Naumov
  • one
    show the code .... - Solo_777
  • Thank you all, :) I used the imagettftext function, and added my own fonts. :) - prolisk bdseo_ru

0