|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-06 17:15 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2017-03-06 17:15 UTC] requinix@php.net
[2017-03-19 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ It is not possible to insert turkish UTF8 characters (like in the name Elit İşcan) into a MySQL database via PDO. I tried MyISAM tables and InnoDB tables. I tried utf8, utf16, utf32, utfmb4 and ISO 8859-9 Turkish (latin 5) Test script: --------------- // Does not work: $query = "INSERT INTO utf8test (Name) VALUES ("Elit İşcan")"; $pdo = $db->prepare($query); $pdo->execute(); // Results in entry "Elit ??can". Expected result: ---------------- Database entry should read "Elit İşcan" Actual result: -------------- Database entry is "Elit ??can" Old MySQL command works: $query = "INSERT INTO utf8test (Name) VALUES ("Elit İşcan")"; mysql_query(query); Results in entry "Elit İşcan".