Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2011

    Unanswered: Polish Characters & mysql_query()

    I am using MySQL 5.5.13 / PHP 5.3.6 / phpMyAdmin 3.4.2 / on Windows 2003 Server Standard.
    I have a strange issue here. It is to do with the Polish character - - (and probably others as well).
    When I enter the above character directly into MySQL using phpMyAdmin it goes in fine.
    When I use the php function mysql_Query(), I get the following error, "Incorrect string value: '\xF3 ...".
    I have tried using "mysql_query("SET NAMES 'utf8'")" and "mysql_query("SET CHARACTER SET 'utf8'")", but still it fails. I have tried changing the field collation in MySQL from UTF-8 to standard Latin and back. I have even tried using iconv() function but that give an illegal character error.
    The strange thing is that I have a similar setup on another server using MySQL 5.1.33 / PHP 5.2.9, and it works fine for all characters.
    Can any one advise please.

  2. #2
    Join Date
    Sep 2009
    San Sebastian, Spain
    Have you tried printing out the INSERT statement within your PHP code? It looks like there are more characters being included during the INSERT statement.
    Ronan Cashell
    Certified Oracle DBA/Certified MySQL Expert (DBA & Cluster DBA)
    Follow me on Twitter

  3. #3
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    wasn't there a question about this not so long ago
    can't rememebr if the resolution was a PHP problem, a MySQL problem (with Version 5) or there was no resolution
    have a look in either / or the PHP 7 MySQL forums for UTF8 or character encoding problems
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts