Table:
CREATE TABLE `test` (
`f` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Just after connection I send following SQL:
SET NAMES utf8;
Then SQL:
INSERT INTO `test` (`f`) VALUES ("с😊с-е в терновнике");
As a result in the table I have 1 record with value "с" just up to 😊 sign. Is there a chance to correctly handle all such symbols? All this done from PHP if this matters.
select length(f) from testsay? If it's1, then your text really is truncated. If it's bigger, then your string is really in there, and you're doing something wrong upon retrieving it.