From my server, I create and execute a query to my database. The query looks like this:
INSERT INTO `table`(`attr`)
VALUES (
'myText',
...
);
Insert works fine, but when the myText is (for example) the €
character, it inserts €
(ISO representation). When I execute a query inside phpMyAdmin with this character, it works. Could somebody tell me where is the problem?
NOTE: in PHP
, myText
, which is inserted into a query, is €
- so it´s not converted to ISO representation before the query.
UPDATE: I use MySQL 5.5
UPDATE 2: I have CHARSET=utf8 COLLATE=utf8_bin
on my table.