Thread [PHP] PDO und utf8
(49 answers)
Opened by rosti at 2023-06-06 13:34
Dateien auf utf8 umstellen? Dateien speichern nur Bytes. Genauso wie MySQL Tabellen. Zum selbertesten:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 $dbh->do(q( create table cc( c varchar(123) charset latin1 )default charset latin1 )); $dbh->do("insert into cc(c)values('€')"); print $dbh->selectrow_array("select hex(c) from cc"); # E282AC $dbh->do('drop table cc'); Last edited: 2023-06-14 10:15:50 +0200 (CEST) |