Kim Kohen <[EMAIL PROTECTED]> wrote: > > I have a bit of a problem with some characters I'm loading from a Filemaker > Pro database. The single quotes are stored in MySQL as ASCII character 155 > (an 'O' with a tilde over it). I have tried everything I can think of to > replace this with the PHP I use to query the db but I have failed miserably. > I have similar problems with all single quotes and double quotes. > > I could probably process the text file before loading it into MySQL > (replacing the quotes with their HTML special characters) but I'm wondering > if there is anything more fundamental I should be doing. >
You should escape single or double quotes: http://www.mysql.com/doc/en/String_syntax.html You can use MySQL function QUOTE() or PHP function mysql_escape_string (). -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]