{"id":9886,"date":"2017-03-22T19:26:32","date_gmt":"2017-03-22T13:26:32","guid":{"rendered":"http:\/\/shra.ru\/?p=9886"},"modified":"2017-03-23T19:26:49","modified_gmt":"2017-03-23T13:26:49","slug":"general-error-1366-incorrect-string-value","status":"publish","type":"post","link":"https:\/\/shra.ru\/2017\/03\/general-error-1366-incorrect-string-value\/","title":{"rendered":"General error 1366 incorrect string value…"},"content":{"rendered":"
\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0437\u0430\u0447\u0438\u0449\u0430\u043b PDOException: SQLSTATE: General error: 1366. \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u00a0\u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0431\u0430\u0437\u0443 UTF \u0441\u0442\u0440\u043e\u043a, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 UTF \u0441\u0438\u043c\u0432\u043e\u043b\u044b. \u041f\u043e \u043b\u043e\u0433\u0430\u043c \u0431\u044b\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u0438 \u043a\u0443\u0434\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430.<\/p>\n
\u041f\u0443\u0442\u0435\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u0430\u044f\u0447\u0438\u043b\u043e \u0446\u0435\u043b\u044b\u0445 \u0434\u0432\u0430:<\/p>\n
\u041d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0447\u0435\u043c \u043e\u0434\u043d\u0438 UTF \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445. \u042f \u043d\u0435 \u0432\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f UTF, \u043a\u0430\u043a\u0438\u0435 \u043e\u043d\u0438 \u0431\u044b\u0432\u0430\u044e\u0442.<\/p>\n
\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e UTF \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442 1 \u0434\u043e 4 \u0431\u0430\u0439\u0442. \u0412\u043e\u0442 \u043a\u0430\u043a \u043e\u043d\u0438 \u0448\u0438\u0444\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u043a\u043e\u0434\u0435:<\/p>\n
0xxxxxxx \r\n110xxxxx 10xxxxxx\r\n1110xxxx 10xxxxxx 10xxxxxx\r\n11110xxx 10xxxxxx 10xxxxxx 10xxxxxx<\/pre>\n\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0431\u0430\u0437\u043e\u0439 \u0432\u044b\u0437\u0432\u0430\u043b\u0438 4\u0445 \u0431\u0430\u0439\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b.<\/p>\n
«\u0423\u0447\u0438\u043c» \u0431\u0430\u0437\u0443<\/h2>\n
\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0438\u043f \u043f\u043e\u043b\u044f \u043d\u0430 BLOB, \u0447\u0442\u043e\u0431\u044b \u0431\u0430\u0437\u0430 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u0438 UTF. \u0410 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0431\u0430\u0437\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 utf8mb4.<\/p>\n
\u041b\u0438\u0447\u043d\u043e \u043c\u043d\u0435, \u0432\u0441\u044f \u044d\u0442\u0430 \u043f\u0441\u0435\u0432\u0434\u043e\u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u0430 \u0432 4\u0445-\u0431\u0430\u0439\u0442\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b utf, \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u0430 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0439\u0434\u0443 \u0432\u0442\u043e\u0440\u044b\u043c \u043f\u0443\u0442\u0435\u043c.<\/p>\n
\u0423\u0431\u0438\u0440\u0430\u0435\u043c 4\u0445-\u0431\u0430\u0439\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b UTF \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430<\/h2>\n
\u0414\u043b\u044f PHP \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b:<\/p>\n
\/\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c 4\u0445-\u0431\u0430\u0439\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b UTF\r\n$text = preg_replace(\"\/[\\xf0-\\xf7][\\x80-\\xbf]{3}\/\", \" \", $text);<\/pre>\n\u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f «\u043f\u043e\u0447\u0438\u043a\u0430\u0442\u044c» 3\u0445 \u0431\u0430\u0439\u0442\u043d\u044b\u0435, \u0432\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0434\u043b\u044f \u043d\u0435\u0433\u043e:<\/p>\n
\/\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c 3\u0445-\u0431\u0430\u0439\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b UTF\r\n$text = preg_replace(\"\/[\\xe0-\\xef][\\x80-\\xbf]{2}\/\", \" \", $text);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0437\u0430\u0447\u0438\u0449\u0430\u043b PDOException: SQLSTATE: General error: 1366. \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430\u00a0\u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0431\u0430\u0437\u0443 UTF \u0441\u0442\u0440\u043e\u043a, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 UTF \u0441\u0438\u043c\u0432\u043e\u043b\u044b. \u041f\u043e \u043b\u043e\u0433\u0430\u043c \u0431\u044b\u043b\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e \u0438 \u043a\u0443\u0434\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-9886","post","type-post","status-publish","format-standard","hentry","category-programmirovanie"],"acf":[],"yoast_head":"\n
General error 1366 incorrect string value...<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n