Wolfgang has asked for the wisdom of the Perl Monks concerning the following question:
my $names=$dbh->do("SET NAMES utf8"); my $charset=$dbh->do("SET CHARACTER SET utf8"); my $do_sql=$dbh->do($sql);
The problem is (probably) not in the db, because I can write cyrillic with phpmyAdmin (and read back with my script)). Pasting this sql-statement into my script does not work, though. I am definitily passing utf-encoded string to 'do'. DBI::data_string_desc says: 'UTF8 on, non-ASCII, 99 characters 105 bytes'
What kind of silly mistake could I be doing?
Wolfgang
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't write cyrillic to DBD::mysql
by Corion (Patriarch) on Jun 29, 2010 at 10:24 UTC | |
by Wolfgang (Novice) on Jun 29, 2010 at 10:34 UTC | |
by Corion (Patriarch) on Jun 29, 2010 at 10:39 UTC | |
by Wolfgang (Novice) on Jun 29, 2010 at 12:04 UTC | |
by Corion (Patriarch) on Jun 29, 2010 at 12:07 UTC | |
| |
|
Re: Can't write cyrillic to DBD::mysql
by Xilman (Hermit) on Jun 29, 2010 at 10:28 UTC | |
by Wolfgang (Novice) on Jun 29, 2010 at 10:48 UTC | |
|
Re: Can't write cyrillic to DBD::mysql
by Krambambuli (Curate) on Jun 29, 2010 at 17:43 UTC | |
|
Re: Can't write cyrillic to DBD::mysql
by Wolfgang (Novice) on Jun 29, 2010 at 19:09 UTC |