Good day! I create an XML page. The data I take from MySQL using SELECT. The table has the utf8_general_ci encoding. I create XML using the usual echo . When I deduce the Russian text from the table:
<text> $row[text] </text>
then get
! ...
even though the php file itself is in UTF without BOM and the XML text header is:
<?xml version="1.0" encoding="utf-8"?>
Please help. What to do with this encoding? And is it normal that this is a .php file. And the fact that in it the code of extraction from the table and other functions? And please note that this is only inside this xml. Prior to this is echo with the Russian text. It works fine.
ps English is displayed without problems.
Adding for Shrek: