6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Encode 'from_to';
use utf8;
...
my $sth = $dbh_r->prepare("set CHARACTER SET cp1251_koi8;");
$sth->execute();
$sth = $dbh_r->prepare( "SELECT * FROM test_table_org;");
$sth->execute();
...
while (my $row = $sth -> fetchrow_arrayref){
...
Encode::from_to($row->[1], "cp1251", "utf-8");
...
}
1
2
3
4
5
6
7
8
...
$sth =$dbh_r->prepare("SET character_set_results='utf8'");
$sth->execute();
$sth =$dbh_r->prepare("set character_set_connection='utf8'");
$sth->execute);
...
Encode::from_to($row->[1], "utf-8", "cp1251");
...
6 Einträge, 1 Seite |