Simple HTML form with POST to SQL function encoding problem?

Posted by Spoonk on Stack Overflow See other posts from Stack Overflow or by Spoonk
Published on 2010-06-06T19:52:19Z Indexed on 2010/06/06 20:02 UTC
Read the original article Hit count: 210

Filed under:

Hi again, I have a simple html form that submits information with POST function. But when information contains a Cyrillic characters, in table in MySql there becomes азазаза symbols instead of text. The table is on utf-8_general_ci, the site is on UTF-8 encoding. I visualize the result from this table with

$query = " SELECT ".$db->nameQuote('ingredients')." FROM ".$db->nameQuote('other')." ORDER by id DESC "; $db->setQuery($query); $ingredients = $db->loadResult();

I cant understand how to tell the form to send chyrillic characters correct. Or where is the problem at all? How to fetch this characters correctly? Or how to send them correctly?

© Stack Overflow or respective owner

Related posts about php