way has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys!
I've problems with DBI and the encoding, i'm using MySql with all %char% variables as utf-8, so using placeholder i try to insert some field but it retrieve error like this:
DBD::mysql::st execute failed: Incorrect string value: '\xEDnes' for c +olumn 'lastname' at row 1 at
I know that it is basic but don't know where start, can you give me some idea?
Regars
--------------------------------
SOLVED:Don't forget the difference between utf8 and UTF-8
binmode STDIN, ':encoding(UTF-8)';
This's becouse i receive data from a form and insert it to the MySql DB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and encoding problem
by almut (Canon) on Feb 21, 2009 at 10:11 UTC | |
|
Re: DBI and encoding problem
by graff (Chancellor) on Feb 21, 2009 at 15:50 UTC | |
by way (Sexton) on Feb 27, 2009 at 17:34 UTC |