RnC has asked for the wisdom of the Perl Monks concerning the following question:
It all works good, but I'm having problems when inserting words like "cólon" (it shows up as cólon), or anything with a non-english char such as "nã" or a cedil appears as a bunch of junk. The weird thing is that if I do the INSERT via the MySQL shell using any of these characters, it works fine, which I can check by SELECTing. So that's leading me to believe that DBI is somehow screwing up with the encoding or something. I already tried changing the locale (both from the shell and by using setlocale(), but still the problem persists.my $MYSQL_insert = "INSERT INTO $MYSQL_tablename (title, link,descript +ion, pubdate, source) VALUES (?, ? , ?, ?, ?)"; my $query_handle = $dbhandle->prepare($MYSQL_insert); $query_handle->execute($title, $link, $description, pubdate, $source);
2006-01-09 Retitled by g0n, as per Monastery guidelines
Original title: 'DBI hadling special chars like accented ones'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI handling special chars like accented ones
by explorer (Chaplain) on Jan 09, 2006 at 10:31 UTC | |
|
Re: DBI handling special chars like accented ones
by Aristotle (Chancellor) on Jan 09, 2006 at 15:17 UTC | |
by RnC (Sexton) on Jan 09, 2006 at 22:56 UTC | |
by RnC (Sexton) on Jan 10, 2006 at 00:13 UTC | |
|
Re: DBI handling special chars like accented ones
by randyk (Parson) on Jan 09, 2006 at 15:12 UTC | |
by RnC (Sexton) on Jan 09, 2006 at 22:20 UTC |