5 messages in com.mysql.lists.perlQuoting with different charsets (again)
FromSent OnAttachments
Dave Rolsky03 Nov 2001 21:08 
Jochen Wiedmann04 Nov 2001 09:54 
Dave Rolsky04 Nov 2001 21:06 
Jochen Wiedmann05 Nov 2001 12:17 
Dave Rolsky05 Nov 2001 13:58 
Subject:Quoting with different charsets (again)
From:Dave Rolsky (auta@urth.org)
Date:11/03/2001 09:08:28 PM
List:com.mysql.lists.perl

Ok, I now know _how_ this can be fixed. If all the places where strings are quoted (for MySQL) would simply use mysql_real_escape_string then everything would be just fine. This function takes character set into account so it would just do the right thing.

I first brought this problem up over a year ago and it still plagues me from time to time. Basically, Big5 or GB-2312 characters ending in '\' are incorrectly quoted by the DBD::mysql driver, resulting in much pain.

If this could be fixed I would be eternally grateful. I've been trying to patch this but I am a C gimp and am not getting very far.

-dave

/*================== www.urth.org We await the New Sun ==================*/